api.access
Modify the access of the token exchange request, such as rejecting the request.
void
Mark the current token exchange as denied.If the request is being denied due to an invalid subject token, use Parameters
api.access.rejectInvalidSubjectToken instead to distinguish brute force attempts from other denial reasons.Example
void
Mark the provided subject token as invalid. This rejects the request with an Parameters
invalid_request error and signals Attack Protection features to apply brute force protections.Example
api.authentication
Indicate the result of the authentication of the subject token, specifying the user for whom tokens will be issued.
void
Indicate the user corresponding to the subject token by providing their user ID. Exactly one of Parameters
setUserById or setUserByConnection must be called.Example
void
Indicate the user corresponding to the subject token by providing a connection and user attributes. Creates the user if they don’t exist. Exactly one of Parameters
setUserById or setUserByConnection must be called.Example
void
Set the organization for the user associated with the token exchange.Parameters
Example
void
Set the actor for the token exchange to represent the entity acting on behalf of the subject. Calling Parameters
setActor is optional. Refresh tokens are not issued when an actor is set.Example
api.user
Request changes to the user corresponding to the subject token.
void
Set application-specific metadata for the user corresponding to the subject token.Parameters
Example
void
Set general metadata for the user corresponding to the subject token.Parameters
Example
api.cache
Store and retrieve data that persists across executions.
void
Delete a cached record at the supplied key if it exists.Parameters
Example
object | undefined
Retrieve a cached record at the supplied key. If found, access the value via Parameters
record.value.Example
void
Store or update a string value in the cache at the specified key. Values are scoped to the Trigger and subject to the Actions Cache Limits. If no lifetime is specified, a default lifetime of 15 minutes will be used.Important: This cache is designed for short-lived, ephemeral data. Items may not be available in later transactions even if they are within their supplied lifetime.Parameters
Example