authorization_details
parameter is a JSON array of objects. You can render the authorization_details
, containing transaction details, in a consent prompt to the user in Multi-factor Authentication challenges.
To configure Rich Authorization Requests for a resource server, you must:
authorization_details
types for the resource server.standard
consent policy behavior for a resource server that accepts Rich Authorization Requests:
Is it a Rich Authorization Request? | MFA Required? | Consent policy is standard or undefined |
---|---|---|
No | No | Standard consent is shown unless there is a grant that includes the requested access. |
Yes | No | Customized consent is shown. |
Yes | Yes, with an authentication factor that is not a push notification | Customized consent is shown after the user fulfills the MFA challenge. |
Yes | Yes, with a push notification factor | No consent is shown. The consent is handled in the mobile application that receives the push notification challenge. |
PATCH
request to the Update a resource server endpoint. In the PATCH
request, set the consent_policy
to standard
:
type
field determines the customizable object fields. An authorization_details
array may contain multiple entries of the same type
.
You must register authorization_details
types for a resource server, which is similar to registering allowed scopes. The authorization_details
types must follow these requirements:
type
property (that is pre-registered on the API)a-zA-Z0-9_.-
authorization_details
types with the Auth0 Dashboard or Management API.
Auth0 DashboardManagement API
You can add authorization_details
in the Auth0 Dashboard.
authorization_details
types for your resource server. Enter an authorization_details
type and then select the +Add option.authorization_details
types for your resource server under List of Authorization Details Types:
authorization_details
types with the Management API, you need to send a PATCH
request to the Update a resource server endpoint.
The following code sample adds the payment_initiation
and money_transfer
types under authorization_details
for a resource server:
authorization_details
type payment_initiation
: