OIDC Configuration
Manage OIDC configuration for applications including custom scopes, token claims, claim transformation regex rules, signing keys, and token lifetime policies.
/api/v1/applications/:appId/oidc-configGet OIDC ConfigBearer Token▾Returns the complete OIDC configuration for an application, including scopes, claims, regex rules, signing keys, and token policy.
Parameters
Response Fields
Response Example
{
"id": "oidc_cfg_01hxyz",
"applicationId": "app_01hxyz",
"scopes": [
{
"id": "scope_01hxyz",
"name": "openid",
"description": "OpenID Connect scope",
"isDefault": true
},
{
"id": "scope_02hxyz",
"name": "profile",
"description": "User profile information",
"isDefault": true
},
{
"id": "scope_03hxyz",
"name": "custom:billing",
"description": "Access billing information",
"isDefault": false
}
],
"claims": [
{
"id": "claim_01hxyz",
"name": "department",
"userAttribute": "department",
"regexRuleId": null,
"targetTokens": [
"ID_TOKEN"
]
}
],
"regexRules": [
{
"id": "rule_01hxyz",
"name": "Extract domain",
"pattern": "^.+@(.+)$",
"replacement": "$1",
"flags": "i"
}
],
"signingKeys": [
{
"id": "key_01hxyz",
"kid": "sig-rs256-2025",
"algorithm": "RS256",
"isDefault": true,
"createdAt": "2025-01-15T10:30:00Z"
}
],
"tokenPolicy": {
"accessTokenLifetime": 3600,
"idTokenLifetime": 3600,
"refreshTokenLifetime": 86400,
"rotationEnabled": true,
"reuseInterval": 0
},
"createdAt": "2025-01-15T10:30:00Z",
"updatedAt": "2025-01-15T10:30:00Z"
}Code Examples
/api/v1/applications/:appId/oidc-config/scopesCreate Custom ScopeBearer Token▾Add a custom OAuth scope to the application OIDC configuration. Custom scopes can be used to control access granularity beyond the standard OpenID Connect scopes.
Parameters
Request Body
Response Fields
Response Example
{
"id": "scope_01hxyz",
"name": "custom:billing",
"description": "Access billing information and invoices.",
"isDefault": false,
"createdAt": "2025-01-15T10:30:00Z"
}Code Examples
/api/v1/applications/:appId/oidc-config/scopesList ScopesBearer Token▾List all configured OAuth scopes for the application, including both default and custom scopes.
Parameters
Response Fields
Response Example
{
"data": [
{
"id": "scope_01hxyz",
"name": "openid",
"description": "OpenID Connect scope",
"isDefault": true,
"createdAt": "2025-01-15T10:30:00Z"
},
{
"id": "scope_02hxyz",
"name": "profile",
"description": "User profile information",
"isDefault": true,
"createdAt": "2025-01-15T10:30:00Z"
},
{
"id": "scope_03hxyz",
"name": "custom:billing",
"description": "Access billing information and invoices.",
"isDefault": false,
"createdAt": "2025-01-16T08:00:00Z"
}
]
}Code Examples
/api/v1/applications/:appId/oidc-config/claimsCreate Custom ClaimBearer Token▾Add a custom token claim to the application OIDC configuration. Custom claims map user attributes to access tokens and/or ID tokens, optionally applying a regex transformation rule.
Parameters
Request Body
Response Fields
Response Example
{
"id": "claim_01hxyz",
"name": "department",
"userAttribute": "department",
"regexRuleId": null,
"targetTokens": [
"ACCESS_TOKEN",
"ID_TOKEN"
],
"createdAt": "2025-01-15T10:30:00Z"
}Code Examples
/api/v1/applications/:appId/oidc-config/claimsList ClaimsBearer Token▾List all configured token claims for the application, including the user attribute mapping and target tokens.
Parameters
Response Fields
Response Example
{
"data": [
{
"id": "claim_01hxyz",
"name": "department",
"userAttribute": "department",
"regexRuleId": null,
"targetTokens": [
"ID_TOKEN"
],
"createdAt": "2025-01-15T10:30:00Z"
},
{
"id": "claim_02hxyz",
"name": "email_domain",
"userAttribute": "email",
"regexRuleId": "rule_01hxyz",
"targetTokens": [
"ACCESS_TOKEN",
"ID_TOKEN"
],
"createdAt": "2025-01-16T08:00:00Z"
}
]
}Code Examples
/api/v1/applications/:appId/oidc-config/regex-rulesCreate Regex RuleBearer Token▾Add a claim transformation regex rule. Regex rules can be referenced by custom claims to transform user attribute values before they are included in tokens.
Parameters
Request Body
Response Fields
Response Example
{
"id": "rule_01hxyz",
"name": "Extract domain",
"pattern": "^.+@(.+)$",
"replacement": "$1",
"flags": "i",
"createdAt": "2025-01-15T10:30:00Z"
}Code Examples
/api/v1/applications/:appId/oidc-config/regex-rulesList Regex RulesBearer Token▾List all claim transformation regex rules configured for the application.
Parameters
Response Fields
Response Example
{
"data": [
{
"id": "rule_01hxyz",
"name": "Extract domain",
"pattern": "^.+@(.+)$",
"replacement": "$1",
"flags": "i",
"createdAt": "2025-01-15T10:30:00Z"
},
{
"id": "rule_02hxyz",
"name": "Normalize username",
"pattern": "\\s+",
"replacement": "_",
"flags": "g",
"createdAt": "2025-01-16T08:00:00Z"
}
]
}Code Examples
/api/v1/applications/:appId/oidc-config/signing-keysCreate Signing KeyBearer Token▾Add a signing key for token issuance. Signing keys are used to sign access tokens and ID tokens. Multiple keys can be configured to support key rotation.
Parameters
Request Body
Response Fields
Response Example
{
"id": "key_01hxyz",
"kid": "sig-rs256-2025",
"algorithm": "RS256",
"isDefault": true,
"createdAt": "2025-01-15T10:30:00Z"
}Code Examples
/api/v1/applications/:appId/oidc-config/signing-keysList Signing KeysBearer Token▾List all signing keys configured for the application. Private key material is not included in the response.
Parameters
Response Fields
Response Example
{
"data": [
{
"id": "key_01hxyz",
"kid": "sig-rs256-2025",
"algorithm": "RS256",
"isDefault": true,
"createdAt": "2025-01-15T10:30:00Z"
},
{
"id": "key_02hxyz",
"kid": "sig-es256-2025",
"algorithm": "ES256",
"isDefault": false,
"createdAt": "2025-01-16T08:00:00Z"
}
]
}Code Examples
/api/v1/applications/:appId/oidc-config/token-policyUpdate Token PolicyBearer Token▾Configure token lifetimes and refresh token rotation policy for the application. All fields are optional; only provided fields are updated.
Parameters
Request Body
Response Fields
Response Example
{
"accessTokenLifetime": 3600,
"idTokenLifetime": 3600,
"refreshTokenLifetime": 86400,
"rotationEnabled": true,
"reuseInterval": 0,
"updatedAt": "2025-01-15T10:30:00Z"
}Code Examples
/api/v1/applications/:appId/oidc-config/token-policyGet Token PolicyBearer Token▾Get the current token policy settings for the application, including access token, ID token, and refresh token lifetimes, as well as rotation configuration.
Parameters
Response Fields
Response Example
{
"accessTokenLifetime": 3600,
"idTokenLifetime": 3600,
"refreshTokenLifetime": 86400,
"rotationEnabled": true,
"reuseInterval": 0,
"updatedAt": "2025-01-15T10:30:00Z"
}