State Based
These actions provide a state-based authentication implementation using existing states as a credential store.
State Based Actions
Login
Parameter
Definition
Example
Default
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "State Based Login action eventMeta.parameters",
"type": "object",
"properties": {
"eventMeta": {
"type": "object",
"properties": {
"parameters": {
"type": "object",
"properties": {
"expiration": {
"type": "string",
"definition": "Seconds for expiration of access token for a specific login action",
"example": "300",
"default": "Handler's configuration"
},
"refreshExpiration": {
"type": "string",
"definition": "Seconds for expiration of refresh token for a specific login action",
"example": "1800",
"default": "Handler's configuration"
},
"noTokens": {
"type": "string",
"definition": "Whether this login activity should skip generating tokens and validate credentials only (e.g. step for MFA)",
"example": "true",
"default": "false"
},
"rolesInID": {
"type": "string",
"definition": "Whether user roles should be included in ID token in addition to profile",
"example": "true",
"default": "false"
}
}
}
}
}
}
}Refresh
Parameter
Definition
Example
Default
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "State Based Refresh action eventMeta.parameters",
"type": "object",
"properties": {
"eventMeta": {
"type": "object",
"properties": {
"parameters": {
"type": "object",
"properties": {
"allowUnregistered": {
"type": "boolean",
"definition": "Whether refresh tokens should be valid if they don't belong to users in auth.state",
"example": true,
"default": false
},
"expiration": {
"type": "string",
"definition": "Seconds for expiration of access token for a specific login action",
"example": "300",
"default": "Handler's configuration"
},
"refreshExpiration": {
"type": "string",
"definition": "Seconds for expiration of refresh token for a specific login action",
"example": "1800",
"default": "Handler's configuration"
},
"noTokens": {
"type": "string",
"definition": "Whether this login activity should skip generating tokens and validate credentials only (e.g. step for MFA)",
"example": "true",
"default": "false"
},
"rolesInID": {
"type": "string",
"definition": "Whether user roles should be included in ID token in addition to profile",
"example": "true",
"default": "false"
}
}
}
}
}
}
}Last updated
