feat: Add support for fetching rich consents #139
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds the ability to retrieve additional consent information from Auth0's
/rich-consents
endpoint. This is required for certain flows such Client Initiated Backchannel Authentication (CIBA).On receipt of a push notification, where required, additional consent can be obtained as follows:
The user can then use the additional information in the consent record to decide whether to allow or reject the request.
Example of rich-consents binding message being rendered in the test app:
Requests to the
/rich-consent
endpoint require sender constraining via demonstrating proof of possession based on a modified version of the DPoP standard to ensure the access token is bound to the keys used for device enrollment. This change also extends the existing JWT encoding to be able to create a DPoP Proof JWT.References
Testing
Checklist