Create a token policy

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

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.

Body Params

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

integer
60 to 3600
Defaults to 3600

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

allowedScopes
array

Scopes that can be returned 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.
items:
type: string
description: |
OpenID Connect scopes available to the token policy. Scopes return user information following a successful authentication.
enum:
- openid
- profile
- email
- address
- phone

allowedScopes
integer
60 to 31557600
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, inclusive. If omitted, the value defaults to 7776000.

string

Name of the token policy.

boolean

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