Skip to content
Dashboard
Theme
Theme

Validate a SAMLResponse or OIDC code received by the app's own ACS

POST /v1/sso/forwarded: Validate a SAMLResponse or OIDC code received by the app's own ACS.

View Markdown

POST /v1/sso/forwarded

Scope
sso:forward
Auth
Secret key (sk_…)
Since
1.0
  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

  • Idempotency-Key string

    Honoured for 24 h; a replay returns the original response.

    min length 1 · max length 255

  • connection string Required

  • saml_response string

    Base64 SAMLResponse as received by the app’s own ACS.

  • relay_state string

  • acs_url string (uri)

    The app’s ACS URL the response was posted to; optional when the connection registers exactly one.

  • in_response_to string

    The ID of the AuthnRequest the app sent; omit only for an IdP-initiated response (refused unless the connection allows those).

  • oidc_code string

  • redirect_uri string (uri)

  • code_verifier string

    The PKCE verifier of the app’s own OIDC authorization request (required with oidc_code).

  • nonce string

    The nonce of the app’s own OIDC authorization request (required with oidc_code).

  • client_id string

    A publishable key (pk_…) of the same environment; the access token’s audience. Required.

Errors share one shape; see the error code catalogue.

curl -X POST \
"https://auth.ohauthcat.com/v1/sso/forwarded" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"connection": "conn_01J9Z3K5V7W8X9Y0Z1A2B3C4D5"
}'
Response 200
{
"access_token": "sk_test_example",
"token_type": "Bearer",
"expires_in": 600,
"profile": {
"claims": {},
"risk": {
"score": 0,
"reasons": [
"impossible_travel"
],
"degraded": true
},
"custom_attributes": {},
"policy_hints": {
"force_sso": true,
"force_sso_excluded": true,
"max_age_seconds": 1,
"idp_initiated_allowed": true,
"guest": true
},
"access_policy": "guest",
"email_verified": true,
"idp_groups_verified": true,
"id": "prof_01J9ZQ4M7K2X8V3N5B6C1D0E9F",
"object": "profile",
"organization_id": "org_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"connection_id": "conn_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"connection_type": "saml",
"idp_id": "0oa1b2c3d4E5F6g7h8i9",
"email": "jane@acme.com",
"email_domain_verified": true,
"first_name": "Jane",
"last_name": "Doe",
"groups": [
"Engineering"
],
"role": "admin",
"attributes": {},
"raw_attributes": {},
"legacy_ids": {
"workos": "org_01H8ZQ4M7K2X8V3N5B6C1D0E9F"
}
}
}