Your suggested change has been received. Thank you.

close

Access Token Customization Web Hook (1.0.0)

Download OpenAPI specification:Download

A hook that is executed just before the authorization grant is created (authorization call, refresh token)

customize-access-token-web-hook

customize-access-token

This webhook is meant for Access Token customization that includes requested scopes reduction as well as adding additional custom claims to JWT formatted token.

Authorizations:
basicAuthbearerAuth
Request Body schema: application/json
object (User)
required
object (Client)
scopes
required
Array of strings

The scopes that are requested for the authorization grant.

object

All available user-related claims.

required
object (ExecutionContext)
object or null

Hook context optional custom parameters, i.e. : 'on_behalf_of', 'on_behalf_of_type'

Responses

Request samples

Content type
application/json
{
  • "user": {
    },
  • "client": {
    },
  • "scopes": [
    ],
  • "userClaims": { },
  • "executionContext": {
    },
  • "contextCustomParams": {
    }
}

Response samples

Content type
application/json
{
  • "removeScopes": [
    ],
  • "additionalClaims": {
    }
}