Google and GitHub social login
Axis Vertex brokers Google through OIDC and GitHub through OAuth2. Users leave the connected application, authenticate with the provider, return to the Axis Vertex callback, and then continue to the connected application's configured OAuth callback.
Set the public HTTPS issuer for your Vertex deployment:
VERTEX_ISSUER=https://auth.example.com
Trailing slashes are omitted in the examples. Provider client secrets are write-only server-side values.
Google OIDC
Create the Google client
- Open Google Cloud Console.
- Select or create a project.
- Under Google Auth Platform, configure Branding, Audience, and Data Access as required by Google. If the app remains in testing mode, add the identities used for verification as test users.
- Open Clients, choose Create client, and select Web application.
- Add this exact Authorized redirect URI:
VERTEX_ISSUER/api/v1/identity-providers/oidc/callback
For example:
https://auth.example.com/api/v1/identity-providers/oidc/callback
Axis Vertex does not use the Google JavaScript SDK for this brokered flow. An Authorized JavaScript origin is not a
replacement for the redirect URI. If Google or an organization policy requires an origin, use the exact HTTPS origin
of VERTEX_ISSUER with no path. Add the connected application's origin only if that application independently uses a
Google browser SDK.
- Copy the Google client ID and client secret. Never place the secret in the connected SPA.
Google requires the authorization request's redirect_uri to exactly match a registered redirect URI. Scheme, host,
port, path, and trailing slash all matter. See Google's
OAuth 2.0 web-server guide for the upstream
requirements.
Add Google in Vertex Portal
- Open Applications, select the Application, then open Identity Providers.
- Choose Add Provider and select Google.
- Enter a stable internal name and the user-facing display name.
- Enter the Google client ID and client secret.
- Keep scopes as
openid email profileunless the application has a reviewed need for more. - Keep the email claim as
emailand the name claim asname. - Save and enable the provider. Use Test Connection when available.
The Google issuer is fixed to https://accounts.google.com; do not replace it with an authorization endpoint URL.
GitHub OAuth2
Create the GitHub OAuth App
- Sign in to GitHub.
- Open Developer settings -> OAuth Apps -> New OAuth App. For an organization-owned app, create it under the organization's developer settings instead. GitHub's OAuth App creation guide describes the same Homepage URL and Authorization callback URL fields.
- Set Homepage URL to the connected application's public homepage, for example:
https://app.example.com
- Set Authorization callback URL to the exact Axis Vertex callback:
VERTEX_ISSUER/api/v1/identity-providers/oauth2/callback
For example:
https://auth.example.com/api/v1/identity-providers/oauth2/callback
- Register the OAuth App, generate a client secret, and store it immediately in a secret manager.
GitHub OAuth Apps support only one callback URL. Use a separate OAuth App for each Vertex deployment whose issuer differs, such as development and production.
Add GitHub in Vertex Portal
- Open the same Application's Identity Providers page.
- Choose Add Provider and select GitHub.
- Enter the GitHub OAuth App client ID and client secret.
- Keep scopes as
read:user user:emailso Vertex can resolve a verified email when GitHub's public profile email is absent. - Save and enable the provider.
GitHub is an OAuth2 provider in Vertex, not a generic OIDC issuer. Do not enter a GitHub issuer URL or use the Google OIDC callback.
Make providers visible and allow first sign-in
In Auth Policies for the Application:
- Enable Social login.
- Enable IdP auto-provisioning only if a verified Google or GitHub identity may create a new Application user.
- Leave auto-provisioning disabled when users must be created or invited before social sign-in.
A configured provider remains hidden when Social login is off, disabled, belongs to a different Application, or is not runtime-ready. With auto-provisioning off, a valid provider login still fails for an identity that has no user in the current Application.
Troubleshooting
| Symptom | Check |
|---|---|
| Provider is absent from hosted login | Same Application, provider enabled, Social login enabled, public SPA client selected |
Google reports redirect_uri_mismatch | Exact OIDC callback registered; no extra slash; correct Vertex issuer |
| GitHub returns to the wrong environment | OAuth App callback points to that environment's OAuth2 callback |
Provider callback ends in sign_in_failed | User exists in this Application, or IdP auto-provisioning is enabled |
| Login start returns 502 | Vertex can reach provider discovery/token/user-info endpoints and outbound proxy configuration is healthy |
| Secret was rotated | Edit the provider and submit the new write-only secret; leaving it blank preserves the stored value |
Do not log authorization codes, provider access tokens, client secrets, state, nonce, or callback query strings.