Getting started
This flow creates a browser client and a confidential resource-server client under one Application.
1. Create the Application
In Vertex Portal, create an Application and set its resource audience, for example api://orders. The audience is
the identifier resource servers verify in access-token aud; it is not the Application UUID.
2. Create ApplicationClients
Create only the clients your architecture needs:
| Runtime | Client type | Secret | Required controls |
|---|---|---|---|
| Browser SPA | SPA | None | Exact redirect URI, post-logout URI, allowed origin, Authorization Code + S256 PKCE |
| Native app | NATIVE | None | Exact redirect URI and Authorization Code + S256 PKCE |
| Web/BFF | WEB | Required | Server-held secret, S256 PKCE for interactive code flow |
| Service/worker | M2M | Required | Server-held secret and exact requested scopes |
clientId in SDK configuration always means ApplicationClient.clientId, not an internal record UUID. Never put a
WEB or M2M client secret in browser code.
3. Configure callbacks
Register the exact callback and logout URLs used by the app. Wildcard callback hosts and implicit origin derivation are not supported security assumptions. A SPA also registers its exact browser origin.
4. Complete authentication
Use Hosted authentication for the smallest browser security surface, or choose Embedded, Dialog or Custom for application-rendered UI. Hosted uses Authorization Code + S256 PKCE. Embedded and Custom keep credential proof and required MFA in a controlled authentication transaction, then exchange its authorization code through OAuth with the original PKCE binding. Dialog presents the selected Hosted or Embedded flow. Refresh uses OAuth.
Authentication policy belongs to the Application. clientId locates a client within it and does not select an
independent client-level policy. Registration is separate from login; completing registration or email verification
does not automatically establish a session.
5. Protect the API
The API verifies signature, issuer, audience, expiry, and the ApplicationClient context. It then resolves the token's
roles to current permissions through POST /open/v1/permissions:resolve; it does not trust a stale permissions claim.
browser -> Vertex authorize -> callback -> access token -> resource server
resource server -> permission resolve -> allow or deny
Continue with the JavaScript quickstart for browser authentication or a server SDK quickstart for Java, Go, or Python. Follow the pinned installation instructions on the relevant SDK page. Use the connected application checklist when configuring a real application, clients, policies, identity providers, and callbacks.