Integration Models
Authentication verifies identity, confirming that a user, service, or device is who it claims to be. Choreo Identity & Access Management offers two integration models for adding authentication to an application. Each model follows different standards and reflects different assumptions about trust, UI ownership, and control.
Redirect-Based
Choreo Identity & Access Management implements the OAuth 2.0 Authorization Framework (RFC 6749) and OpenID Connect Core 1.0. Your application delegates authentication to Choreo Identity & Access Management as the authorization server: when a user signs in, your application redirects them to a Choreo Identity & Access Management-hosted sign-in page. After authenticating, Choreo Identity & Access Management redirects back to your application with an authorization code, which your application exchanges for tokens.
The core principle is delegation: user credentials never cross the application boundary. Choreo Identity & Access Management handles credential collection, input validation, and multi-step authentication flows on its own hosted pages. Your application receives only signed tokens (RFC 7519) as proof of authentication.
When to Use
Choose this approach when Choreo Identity & Access Management should own the entire authentication surface, including flow orchestration, UI rendering, and credential processing. This model suits applications that should not process sensitive user credentials directly, or that require a fully managed authentication experience with standard OAuth 2.0 token issuance. Any application that can perform a browser redirect can use this model.
Key Features
- Interoperable: Works with any OAuth 2.0 and OIDC-compliant client library or framework.
- Managed authentication journeys: Choreo Identity & Access Management renders and orchestrates sign-in, sign-up, account recovery, MFA, and consent screens.
- Customizable hosted pages: Customize and configure the sign-in experience via the Flow Builder.
- Credential isolation: User passwords and authentication secrets remain within Choreo Identity & Access Management. Your application never receives them.
How It Works
- Your application redirects the user to Choreo Identity & Access Management's authorization endpoint.
- Choreo Identity & Access Management renders the sign-in page and walks the user through the configured authentication flow (credentials, MFA, consent, etc.).
- On completion, Choreo Identity & Access Management redirects back to your registered redirect URI with an authorization code.
- Your application exchanges the authorization code for an access token, ID token, and optionally a refresh token.
See the API Reference for endpoint specifications.
App-Native
App-native authentication uses the Flow Execution API to drive authentication from your application's own UI. Your application calls the API to start a configured authentication flow, renders each step using its own screens, collects user input, and submits responses back. Choreo Identity & Access Management controls the flow server-side: sequencing steps, applying policies, and branching on context. Your application owns every screen the user sees. On successful completion, Choreo Identity & Access Management returns an assertion token, which your application exchanges for OAuth 2.0 tokens via the Token Exchange grant (RFC 8693).
The core principle is shared responsibility: Choreo Identity & Access Management enforces authentication logic and policies server-side, while your application controls the user experience. Authentication flow changes, such as adding MFA or conditional steps, take effect immediately on Choreo Identity & Access Management without modifying or redeploying your application.
When to Use
Choose this approach when your application must render its own authentication screens (no redirects to hosted pages) while Choreo Identity & Access Management enforces authentication logic, MFA, and policies server-side. This model suits native mobile and desktop apps, or confidential server-side applications, where the client can be trusted to drive the flow directly.
App-native sign-in is not supported for browser-based single-page applications (SPAs) such as React, Angular, or Vue apps. SPAs must register as the browser application type, which can only sign users in through the Redirect-Based model with the OAuth 2.0 Authorization Code grant and PKCE. Registration and recovery have no redirect-based equivalent today, so SPAs continue to drive those flows through the Flow Execution API.
This restriction applies to new authentication and sign-out flow initiation only (flowType: AUTHENTICATION or SIGN_OUT with no executionId). Continuation requests that carry a valid executionId are always accepted, and registration, recovery, and user onboarding flows are never restricted because they have no redirect-based equivalent.
Whether an application may initiate one of these flows directly depends on its application type:
- Browser and Backend Service (m2m) applications can never initiate these flows directly. A browser application must sign users in through the Authorization endpoint (
GET /oauth2/authorize), which drives the flow internally. A Backend Service application authenticates itself with theclient_credentialsgrant instead of signing in a user. - Mobile applications must present a valid platform attestation token. See Attestation.
- Full-stack, Custom, and MCP Client applications are derived from their OAuth 2.0 configuration. An application authenticates with a Flow Secret when it has no OAuth 2.0 configuration, or when it is confidential, has the
urn:ietf:params:oauth:grant-type:token-exchangegrant, and does not use theauthorization_codegrant. The application needs the token exchange grant to exchange the flow's assertion for tokens. Choreo Identity & Access Management rejects direct initiation from any other OAuth 2.0 configuration with403 Forbidden, for example an application with theauthorization_codegrant, or one whose only grants areclient_credentials,urn:ietf:params:oauth:grant-type:jwt-bearer, orurn:openid:params:grant-type:ciba.
Key Features
- Server-side flow execution: Authentication logic, step ordering, and branching live in Choreo Identity & Access Management. Changes take effect immediately without redeploying your application.
- Full UI control: Your application decides how each step looks. No iframe, redirect, or hosted-page constraints.
- Policy enforcement: MFA, conditional steps, and adaptive prompts apply automatically based on the flow definition.
- SDK support: Choreo Identity & Access Management provides SDKs that manage API calls, state tracking, and response parsing.
How It Works
- Your application calls the Flow Execution API to start the configured authentication flow.
- Choreo Identity & Access Management responds with the next step: inputs to collect, available actions, and optional context.
- Your application renders the screen, collects user input, and submits the response back to the Flow Execution API.
- Steps 2-3 repeat until the flow completes. Choreo Identity & Access Management returns the assertion token.
- Your application exchanges the assertion token for an access token, ID token, and optionally a refresh token via the Token Exchange grant (RFC 8693).
See the API Reference for endpoint specifications.
Flow execution does not support going back to a previous step, either through a dedicated back control or the browser's back button.
Flow Secret
A confidential server-side application (one with no OAuth 2.0 configuration, or one that is confidential, has the token exchange grant, and does not use the authorization_code grant) authenticates at flow initiation with a Flow Secret. Choreo Identity & Access Management issues this secret once, when the application is created, and never returns it again; the Console can regenerate it if it's lost. Keep it server-side only, since a browser SPA has nowhere safe to hold it, which is why the browser application type is never issued one (see Direct Initiation Restriction above).
To initiate a new authentication or sign-out flow, the application presents the secret in the Flow-Secret request header:
POST /flow/execute
Content-Type: application/json
Flow-Secret: <flow-secret>
{
"applicationId": "<application-id>",
"flowType": "AUTHENTICATION"
}
An application eligible for a Flow Secret that omits the header is rejected with 401 Unauthorized, and an incorrect value is also rejected with 401 Unauthorized. Flow continuation requests (those carrying an executionId) do not require the header.
Attestation
A confidential server-side application authenticates at flow initiation with a Flow Secret, but a mobile application cannot safely hold one. Instead, a Mobile application type proves its identity through platform attestation. Choreo Identity & Access Management supports Google Play Integrity for Android clients and Apple App Attest for iOS clients. A Mobile application must configure attestation and present a valid attestation token to initiate a sign-in flow directly; Choreo Identity & Access Management verifies the token against the registered identity before starting the flow.
Attestation is a client-level setting configured at the application level, independent of the OAuth 2.0 protocol. It is optional, and when enabled, an application configures exactly one platform. A Mobile application that has not configured attestation is rejected outright when it attempts to initiate a flow directly. Attestation is only consulted for the Mobile application type: configuring it on any other application type has no effect on direct flow initiation. See Configure Platform Attestation for how to configure it.
To initiate a new flow, the mobile client obtains a platform attestation token and presents it in the Attestation-Token request header of the Flow Execution request:
POST /flow/execute
Content-Type: application/json
Attestation-Token: <attestation-token>
{
"applicationId": "<application-id>",
"flowType": "AUTHENTICATION"
}
A Mobile application that has not configured attestation is rejected with 400 Bad Request. Once attestation is configured, an application that omits the token is rejected with 401 Unauthorized, and an invalid or malformed token is also rejected with 401 Unauthorized. Flow continuation requests (those carrying an executionId) do not require an attestation token.
A Mobile application with Dev mode enabled is an exception to the rejections above. It can initiate a flow without presenting an attestation token, regardless of whether a platform is configured. Dev mode is intended for testing and trying out sample or development clients, not production use. See Dev Mode.
Integration Modes
App-native authentication supports two modes, Verbose and Non-Verbose, controlled via the verbose field in the Flow Execution API. These modes offer different levels of UI granularity to the application. A Choreo Identity & Access Management SDK typically consumes these modes and manages API calls, state, and response parsing. Both modes follow the same request-response cycle: the application calls the Flow Execution API, receives the next step, renders the screen, collects user input, and submits the response back. The difference lies in how much detail Choreo Identity & Access Management returns for each step.
Verbose Mode
In verbose mode (verbose: true), each response includes inputs, actions, and a meta component tree describing the screen layout. The application renders the screen exactly as the server specifies.
The SDK renders the component tree automatically. Without the SDK, your application must parse and render the component tree itself.
Request:
curl https://<DATA_PLANE_URL>/flow/execute \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"applicationId": "550e8400-e29b-41d4-a716-446655440000",
"flowType": "AUTHENTICATION",
"verbose": true
}'
Response:
{
"executionId": "2c6d4c45-3de9-4a70-ae6b-ba1d034af6bc",
"flowStatus": "INCOMPLETE",
"challengeToken": "a3f2e1b0c9d8e7f6a5b4c3d2e1f0a9b8c7d6e5f4a3b2c1d0e9f8a7b6c5d4e3f2",
"type": "VIEW",
"data": {
"inputs": [
{
"ref": "input_phone",
"identifier": "phone",
"type": "TEL_INPUT",
"required": true
}
],
"actions": [
{
"ref": "action_submit",
"nextNode": "node_bs12"
}
],
"meta": {
"components": [
{
"id": "main-block",
"type": "BLOCK",
"components": [
{
"id": "field-phone",
"ref": "input_phone",
"type": "TEL_INPUT",
"label": "Phone Number",
"required": true
},
{
"id": "action-submit",
"ref": "action_submit",
"type": "ACTION",
"label": "Continue"
}
]
}
]
}
}
}
Non-Verbose Mode
In non-verbose mode (verbose: false), each response includes only inputs and actions, without the meta component tree. Your application decides how to render each screen and capture input using its own components.
Request:
curl https://<DATA_PLANE_URL>/flow/execute \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"applicationId": "550e8400-e29b-41d4-a716-446655440000",
"flowType": "AUTHENTICATION"
}'
Response:
{
"executionId": "2c6d4c45-3de9-4a70-ae6b-ba1d034af6bc",
"flowStatus": "INCOMPLETE",
"challengeToken": "a3f2e1b0c9d8e7f6a5b4c3d2e1f0a9b8c7d6e5f4a3b2c1d0e9f8a7b6c5d4e3f2",
"type": "VIEW",
"data": {
"inputs": [
{
"ref": "input_phone",
"identifier": "phone",
"type": "TEL_INPUT",
"required": true
}
],
"actions": [
{
"ref": "action_submit",
"nextNode": "node_bs12"
}
]
}
}
Example
The following shows a username and password flow. Your application starts the flow, Choreo Identity & Access Management responds with the first step describing what to collect, and your application renders the form.
Request:
curl https://<DATA_PLANE_URL>/flow/execute \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"applicationId": "550e8400-e29b-41d4-a716-446655440000",
"flowType": "AUTHENTICATION"
}'
Response:
{
"executionId": "2c6d4c45-3de9-4a70-ae6b-ba1d034af6bc",
"flowStatus": "INCOMPLETE",
"challengeToken": "a3f2e1b0c9d8e7f6a5b4c3d2e1f0a9b8...",
"type": "VIEW",
"data": {
"inputs": [
{ "ref": "input_username", "identifier": "username", "type": "TEXT_INPUT", "required": true },
{ "ref": "input_password", "identifier": "password", "type": "PASSWORD_INPUT", "required": true }
],
"actions": [
{ "ref": "action_submit", "nextNode": "node_bs12" }
]
}
}
Your application renders the username and password fields, collects input, and submits them back using the executionId and challengeToken.
Request:
curl https://<DATA_PLANE_URL>/flow/execute \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"executionId": "2c6d4c45-3de9-4a70-ae6b-ba1d034af6bc",
"challengeToken": "a3f2e1b0c9d8e7f6a5b4c3d2e1f0a9b8...",
"action": "action_submit",
"inputs": {
"input_username": "thor",
"input_password": "odinson123"
}
}'
Response:
{
"executionId": "2c6d4c45-3de9-4a70-ae6b-ba1d034af6bc",
"flowStatus": "COMPLETE",
"assertion": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Choreo Identity & Access Management validates the credentials and returns either the next step or the final assertion token. See Assertion Tokens.
Assertion Tokens
App-Native returns an assertion token on successful authentication. This token is a signed JWT (RFC 7519) containing:
- Authentication methods completed: Which mechanisms the user passed (credentials, OTP, social login).
- Assurance level: The authentication strength based on the methods completed.
- User identity: Details about the authenticated user.
To obtain OAuth 2.0 access tokens, exchange the assertion token at the token endpoint using the Token Exchange grant (RFC 8693).
Design Comparison
| Redirect-Based | App-Native | |
|---|---|---|
| Trust model | Delegated: Choreo Identity & Access Management is the authority | Shared: Choreo Identity & Access Management controls the flow execution sequence, app renders |
| Credential exposure | Choreo Identity & Access Management only | Passes through the application |
| Authentication logic | Server-enforced by flow | Server-enforced by flow |
| Token output | OAuth 2.0 access tokens, ID tokens | Assertion token (JWT); exchange via Token Exchange (RFC 8693) for OAuth 2.0 tokens |
| Flow configuration | Required | Required |
Related Reference
- Tokens: Access tokens, ID tokens, and refresh tokens
- Authorization: How Choreo Identity & Access Management controls access to resources after authentication
Was this page helpful?