Skip to main content

Authentication

Vertex offers four UI integration modes. Choose where the form lives and who renders it; authentication policy and identity remain owned by the Application.

ModeUI ownerCredential handlingBest fit
HostedVertexVertex originLowest application security surface and centralized policy UX
EmbeddedApplicationApplication-rendered form/provider controlsBranded inline flows with more app responsibility
DialogVertex SDK componentVertex SDK orchestration in app UIPrebuilt modal UX without implementing every state
CustomApplicationPublic SDK hooks and application-rendered controlsA fully custom interface using the supported authentication flow

Hosted authentication uses Authorization Code + S256 PKCE. Embedded and Custom use a controlled authentication transaction for password, email/SMS codes, magic links, Provider authentication and required MFA. Successful transaction completion returns an authorization code, which the SDK exchanges through OAuth with the original PKCE binding. Dialog presents the Hosted or Embedded flow selected by the application.

With the default oauth_tokens, browser modes use a public SPA client with no secret, an exact allowed origin, registered callback URIs, OAuth state, and S256 PKCE. Use the SDK rather than constructing credential or Provider requests yourself. clientId identifies a client belonging to the Application; it does not make authentication policy client-owned. Tokens stay in memory by default. Session storage requires explicit configuration.

Follow the JavaScript SDK source installation guide to use the same API baseline as these examples.

Server-rendered WEB integrations use a confidential client. Interactive code exchange requires both the server-held client secret and the matching PKCE verifier.

Choose session ownership​

The four UI modes can also use BFF server sessions. Choose server_session explicitly, register a confidential WEB client and mount a backend SDK adapter. Tokens then remain on the application backend and the browser uses an HttpOnly Cookie. Embedded, Dialog and Custom do not require switching to Hosted.