Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Set Up Google Login

This guide walks through configuring Google as an external identity provider.

1. Create Google OAuth Credentials

Go to Google Cloud Console

Navigate to Google Cloud Console → APIs & Services → Credentials → Create Credentials → OAuth client ID.

Configure the consent screen

If prompted, configure the OAuth consent screen:

  • App name: Your app name
  • User support email: Your email
  • Authorized domains: aero2.dev

Create OAuth client ID

FieldValue
Application typeWeb application
NameAero2
Authorized redirect URIshttps://aero2.dev/rp/callback/google

Save credentials

Copy the Client ID and Client Secret.

2. Configure Aero2

curl -X POST https://aero2.dev/api/idps \
  -H "Authorization: Bearer <admin_token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "google",
    "type": "oidc",
    "display_name": "Google",
    "client_id": "your-client-id.apps.googleusercontent.com",
    "client_secret": "your-client-secret",
    "authorization_endpoint": "https://accounts.google.com/o/oauth2/v2/auth",
    "token_endpoint": "https://oauth2.googleapis.com/token",
    "userinfo_endpoint": "https://openidconnect.googleapis.com/v1/userinfo",
    "scopes": "openid email profile"
  }'

3. Test It

  1. Visit your Aero2 login page
  2. Click "Sign in with Google"
  3. Select your Google account
  4. You should be redirected to the dashboard

Notes

  • Google uses OIDC (type oidc), not plain OAuth2
  • The openid scope is required for Google
  • Google automatically provides email and profile claims