Skip to main content

Connect an application

Use this checklist when a new browser application and its backend start using Axis Vertex. Configuration is scoped to one Vertex Application. Organizations inside that Application do not own OAuth clients, identity providers, SMTP, or authentication policy.

Define these values before opening Portal:

VERTEX_ISSUER=https://auth.example.com
APP_ORIGIN=https://app.example.com
APP_CALLBACK=https://app.example.com/callback
APP_LOGIN=https://app.example.com/login

1. Create the Application​

In Vertex Portal, open Applications, create an Application, and choose a resource audience such as api://orders. The audience identifies the API that accepts access tokens. It is not an Application UUID or OAuth client ID.

On Overview, configure:

  • Login initiation URI: the connected application's route that starts sign-in, such as APP_LOGIN.
  • Post-verification redirect URI: where hosted email verification returns, usually APP_LOGIN.

These continuation URLs do not replace OAuth callback URLs.

2. Create the required clients​

Open Clients and create only the client types used by the application:

RuntimeClientSecretTypical use
BrowserSPANoHosted, Embedded, Dialog or Custom; OAuth code exchange with S256 PKCE
Server-rendered app/BFFWEBYesServer-side authorization-code exchange
Backend automationM2MYesExact-scope management and service calls
Installed appNATIVENoAuthorization Code + PKCE

For a SPA, configure exact values:

  • Redirect URI: APP_CALLBACK
  • Post-logout redirect URI: APP_LOGIN
  • Allowed origin: APP_ORIGIN (origin only, with no path)

The clientId copied from this page is the public ApplicationClient.clientId used by SDKs and public discovery routes. Never substitute the Application UUID. Keep WEB and M2M secrets in server-side secret storage; do not put them in browser environment variables, static bundles, URLs, or logs.

For BFF server_session, one confidential WEB client covers Hosted and custom browser UI. Register https://app.example.com/auth/callback for the backend and configure its canonical origin. The browser calls its own BFF using that WEB client context without receiving a secret. It does not also need a SPA or M2M client unless a separate integration uses one.

3. Configure registration and authentication​

Open Auth Policies. Treat these controls separately:

  • Signup mode controls open signup, registration-grant-required signup, or disabled signup.
  • Allowed registration grant types applies only when signup requires a grant. An access code is created under Registration Grants, is shown once, and is not an email OTP.
  • Email verification controls whether a newly registered email must be verified before sign-in.
  • Password, Email magic link, and Email OTP are login methods. Email OTP authenticates an existing active user; it does not create an account.
  • Social login is the Application-level switch for configured identity providers.
  • IdP auto-provisioning allows a verified external identity to create a user in this Application on first sign-in. Leave it off when every user must be pre-created.

Email login and verification also require a ready platform SMTP configuration or an Application SMTP override. Enabling a policy switch alone does not make delivery ready.

4. Configure identity providers​

Open Identity Providers to add Google, GitHub, a generic OIDC provider, or SAML. Provider configuration belongs to the same Application as the SPA client. See Google and GitHub social login for the upstream console steps and exact callback paths.

The connected application callback (APP_CALLBACK) and the upstream provider callback are different:

Google -> VERTEX_ISSUER/api/v1/identity-providers/oidc/callback
GitHub -> VERTEX_ISSUER/api/v1/identity-providers/oauth2/callback
Vertex -> APP_CALLBACK

5. Add SDK configuration​

Open SDK Config, select the actual client, and use the generated values for that runtime. A browser configuration normally includes:

VITE_IAM_ISSUER_URI=https://auth.example.com
VITE_IAM_CLIENT_ID=iam_public_client_id
VITE_IAM_REDIRECT_URI=https://app.example.com/callback
VITE_IAM_POST_LOGOUT_REDIRECT_URI=https://app.example.com/login
VITE_IAM_RESOURCE_AUDIENCE=api://orders

Use a separate server-only configuration for an M2M client. Do not reuse its secret in the SPA.

Continue with the SDK lane that matches the runtime:

  • Browser and Node.js: JavaScript SDK with Hosted, Embedded, Dialog, Custom, callback, and Express guidance.
  • Spring Boot API: Java SDK.
  • Go HTTP API: Go SDK.
  • FastAPI or other Python API: Python SDK.

In oauth_tokens, the browser client starts end-user authentication. The resource-server client verifies the resulting bearer token and resolves permissions. A management M2M client is separate and receives only the exact scopes needed by backend automation.

For server_session, follow the BFF guide and selected backend adapter instead of copying SPA token-exchange configuration.

6. Verify the integration​

Before releasing the connected application:

  1. Open GET VERTEX_ISSUER/api/v1/apps/{clientId}/auth-methods with the SPA client ID.
  2. Confirm each intended method and explicit identifier kind is available for the required login or signup flow in this Application; a configured Provider in another Application does not establish readiness here.
  3. Complete the chosen sign-in mode, callback, any required MFA, protected API access, and logout. Check reload behavior against your explicit token-storage or server-session choice.
  4. If social sign-in should create users, test with an external identity that does not already exist in the Application and confirm IdP auto-provisioning is enabled.
  5. Confirm the resource server rejects the wrong issuer, audience, Application client, and expired token.

Do not work around an unavailable method in application code. Fix the reported policy, provider, SMTP, callback, or client configuration instead.

After sign-in, add account security if users manage their own credentials. For invitation-driven onboarding, use the invitation journey, which keeps registration, verification and explicit invitation acceptance as separate steps.