Modify a token policy

Modifies a token policy. Token policies specify token lifetimes and define the allowed scopes for OpenID Connect clients.

Path Params
string
required

Unique identifier issued to Akamai customers. If you aren’t sure what your Akamai customer ID is, log into Console and check the value of the customer_id application setting.

string
required

Unique identifier of a Hosted Login token policy. Token policies specify token lifetimes and define the allowed scopes for clients assigned to the policy.

Body Params

Modifies a token policy. Token policies specify token lifetimes as well as the allowed scopes for clients assigned to the policy.

string
Defaults to 3600

Amount of time, in seconds. that access tokens remain valid. The access token lifetime needs to be an integer value between 60 and 3600, inclusive.

allowedScopes
array of strings

Specifies the scopes available when using this token policy. If omitted, the token policy uses the scopes specified in your discovery document. A token policy can return fewer scopes than the ones listed in the discovery document, but can't return any scopes not listed in that document.

allowedScopes
Allowed:
string
Defaults to 7776000

Amount of time, in seconds, that refresh tokens remain valid. The refresh token lifetime can be any integer value between 60 and 31557600 seconds. If o0mitted, the value defaults to 7776000.

string

Name of the token policy.

string

Indicates whether access tokens are issued as JSON Web Tokens (JWTs).

Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json