Your suggested change has been received. Thank you.
Download OpenAPI specification:Download
A hook that is executed just before the authorization grant is created (authorization call, refresh 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.
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' |
{- "user": {
- "id": "fb6239f6-2j3j-4jj5-997-092999923h"
}, - "client": {
- "id": "ad731534-b319-4760-ac0e-31c872c6fb7c"
}, - "scopes": [
- "sim_read",
- "name",
- "openid",
- "read"
], - "userClaims": { },
- "executionContext": {
- "ipAddress": "string",
- "triggeredBy": [
- "/oauth/authorize",
- "/oauth/token",
- "/oauth/v1/token",
- "/oauth/api/v1/token/introspect"
]
}, - "contextCustomParams": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}
}
{- "removeScopes": [
- "sim_read",
- "name"
], - "additionalClaims": {
- "basicClaim": "example value",
- "complexClaim": {
- "userDefinedProperty1": "userDefinedValue1",
- "userDefinedProperty2": "userDefinedValue2"
}
}
}