Skip to content
Workforce IdentityMarkdown

Realm OAuth settings

The realm-wide lists and lifetimes every app works within, which grants, scopes and client methods the realm accepts, and how long each token lives, in one place.

AvailableAPI

Your realm’s OAuth settings decide what every app may use: which grants and client methods the realm accepts, which scopes it offers, which user details it releases, and how long codes and tokens live. An app’s own registration can only narrow these, never widen them. Every new realm starts with safe values, so most realms change only the scopes and, now and then, a lifetime.

  • Who can do it: a realm administrator (a group holding RealmOwner); RealmViewer can read every setting but change none.
  • Where: today this is done through the API (Call the API shows how to get $CVYUH_SESSION).
  • First: nothing. Every realm starts with the defaults below.

The settings are one object, oauth2Settings, in each realm. A setting you never set takes its default, and a read shows every setting with its default filled in.

Terminal window
curl https://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Settings/oauth2Settings \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"

Change only the fields you send (Call the API shows how to get a session):

Terminal window
curl -X PATCH https://foobar.cvyuh.com/api/v0/am/objects/v1/oauth2Settings/oauth2Settings \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION" \
-H "Content-Type: application/json" \
-d '{ "accessTokenLifetimeSecs": 600 }'

A list you send replaces the realm’s whole list, so read it first and send back every value you want to keep. A map, such as scopeClaims, is merged key by key.

Every setting’s default is in brackets in the Reference. The ranges:

SettingRange
accessTokenLifetimeSecs1 to 86,400
idTokenLifetimeSecs1 to 3,600
refreshTokenLifetimeSecs, refreshTokenIdleSecs1 (0 for idle: no idle limit) to 31,536,000
refreshTokenRetrySecs0 to 60
authorizationCodeLifetimeSecs1 to 600
parLifetimeSecs10 to 600
consentChallengeLifetimeSecs60 to 3,600
logoutChallengeLifetimeSecs10 to 3,600
logoutTokenLifetimeSecs1 to 300
deviceCodeLifetimeSecs10 to 1,800
devicePollIntervalSecs, cibaPollIntervalSecs1 to 60
deviceMissesPerSession, deviceMissesPerAddress, deviceMissesPerRealm1 to 10,000
cibaLifetimeSecs60 to 1,800
clientAssertionMaxLifetimeSecs, bootstrapAssertionLifetimeSecs1 to 3,600
clockSkewSecs0 to 300
dpopProofMaxAgeSecs1 to 300
dpopNonceLifetimeSecs10 to 3,600
maxClients1,000; raised by support

A value outside its range is refused when you save it, naming the setting.

SymptomCauseFix
A scope, grant or method disappeared after a changeA list you sent replaced the realm’s whole listRead the settings, and send back every value you want to keep
A client’s grant or scope is refused though the client lists itThe realm’s list doesn’t hold itAdd it to the realm’s list too
Saving maxClients or clientIdMetadataDocuments is refusedThose are set by supportAsk support

Every change to oauth2Settings is a PATCHED or UPDATED record with the values before and after. See it in Audit → Config, or in Change history.

  • A client works within the realm. A grant, scope or client method a client names takes effect only where the realm’s list holds it too.
  • Short tokens are the default on purpose. An access token lives five minutes, which bounds how long a revoked user or agent keeps access. Apps stay signed in with refresh tokens instead.
  • A realm holds up to 1,000 clients. Raising it is a support matter, not a setting.
  • Accepting apps identified by a URL is turned on by support. Once it is, the cimd… settings are yours.

Values in brackets are the defaults; times are in seconds.

SettingWhat it doesMore
grantTypes (client_credentials, authorization_code, refresh_token)The grants the token endpoint acceptsRegister an app
tokenEndpointAuthMethods (none, client_secret_basic, client_secret_post, private_key_jwt)How clients may prove who they areClient authentication
tokenEndpointAuthSigningAlgs (ES256, RS256)The algorithms a client’s signed assertion may useClient authentication
clientAssertionMaxLifetimeSecs (300), clockSkewSecs (60)How far ahead an assertion may expire, and the leeway on its timesClient authentication
clientSecretRotationGraceSecs (0)How long a replaced secret keeps working after a rotationClient authentication
scopesThe realm’s scopes; a client’s must come from themRegister an app
authorizationDetailsTypes (none)The structured permission types the realm accepts, each with its schemaRich authorization requests
requireResource (false)Refuse a token request that names no APIResource indicators
requirePushedAuthorizationRequests (false)Take every sign-in request only as a pushed onePushed authorization requests
maxClients (1000)The most clients the realm holds; raised by supportRegister an app
SettingWhat it doesMore
authorizationCodeLifetimeSecs (60)How long a sign-in’s code may be redeemed, onceAuthorization code with PKCE
consentChallengeLifetimeSecs (600)How long a browser has to sign in and answer consentConsent
rememberConsent (true)A user who allowed an app isn’t asked again for the same scopesConsent
consentSkipAllowed (false)Let an app marked consentImplied skip the consent pageConsent
firstPartyAppsAllowed (false)Let the realm’s own apps sign users in with their own screensFirst-party app sign-in
parLifetimeSecs (60)How long a pushed request may be used, oncePushed authorization requests
deviceCodeLifetimeSecs (600), devicePollIntervalSecs (5)How long a device’s code lasts, and how often it may askDevice authorization
deviceMissesPerSession (5), deviceMissesPerAddress (10)How many wrong device codes one session or one address may send in 15 minutesDevice authorization
deviceMissesPerRealm (100)The level at which the realm records an alertDevice authorization
acrValues, amrValues (none)Which chain earns each acr, and which amr each sign-in method addsStep-up and re-authentication
logoutChallengeLifetimeSecs (600), logoutTokenLifetimeSecs (120)How long a user has to confirm a sign-out, and how long a logout notice is validLogout
SettingWhat it doesMore
accessTokenLifetimeSecs (300)How long an access token livesAccess tokens
idTokenLifetimeSecs (300)How long an ID token is validOpenID Connect sign-in
refreshTokenGrants (authorization_code, device code)The grants whose tokens come with a refresh tokenRefresh tokens
refreshTokenLifetimeSecs (86400), refreshTokenIdleSecs (3600)How long a refresh token lives from sign-in, and unusedRefresh tokens
refreshTokenRetrySecs (0)How long a spent refresh token may be presented again, for a client retrying a lost answerRefresh tokens
statusListedResources (none)APIs that check tokens offline: their tokens carry a status list entryStatus lists
dpopSigningAlgs (ES256, RS256), dpopProofMaxAgeSecs (60)What a DPoP proof may be signed with, and how old it may beDPoP
dpopNonceRequired (true), dpopNonceLifetimeSecs (300)Whether a proof must carry the realm’s nonce, and how long a nonce lastsDPoP
mtls (false)Serve the realm at mtls.foobar.cvyuh.com, where clients sign in with a certificateCertificate-bound tokens
SettingWhat it doesMore
claimsThe user details the realm ever releasesOpenID Connect sign-in
scopeClaimsThe details each scope releasesChoose which details an app receives
claimAttributesThe user attribute each detail is read fromName users by your own directory’s attributes
idTokenScopeClaims (false)Put the released details in the ID token as well as at userinfoOpenID Connect sign-in
SettingWhat it doesMore
registration (off)Whether developers may register apps, and how long and how often a registration token may be usedDynamic registration
clientIdMetadataDocuments (false)Accept apps identified by the URL of a document they publish; turned on by supportClient metadata documents
cimdScopes (openid, profile), cimdResources (none), cimdBlocked (none)What such apps may be granted, which APIs they may get tokens for, and which are refusedClient metadata documents
SettingWhat it doesMore
bootstrapAssertionLifetimeSecs (300)How long a one-time bootstrap assertion for an agent’s client lastsClient authentication
spiffeTrustDomains (none)The SPIFFE trust domains whose workload credentials the realm trustsClient authentication
clientAttesters (none)The attesters whose client attestations the realm trustsClient attestation
cibaLifetimeSecs (300), cibaPollIntervalSecs (5)How long an agent’s request for its owner’s approval waits, and how often it may askHave an agent ask its owner
ssfEnabled (false)Send security events to the receivers that registered a streamSend signals