Authorization detail
Asking for exactly the access needed: rich authorization requests, resource indicators and step-up challenges.
Start with Describing access with authorization details
- Describing access with authorization detailsSee why a scope cannot say "only album 42" or "pay 42.50 EUR once", then write Rich Authorization Requests objects for an album and a payment and send them safely.
- Processing and validating a requestFollow how an authorization server validates, presents, and returns authorization details, and how an API enforces them, including invalid_authorization_details and single-use payments.
- Selecting the intended resourceUse the resource parameter to name the API a token is for, write valid resource values, and see how it works in authorization and token requests.
- Requesting access to multiple resourcesRequest one authorization that covers two APIs, obtain a separate audience-restricted token for each, and see why one token for both is riskier.
- Audience restrictions and validationSee how an authorization server sets a token's audience and refuses unknown resources with invalid_target, and how an API checks the audience exactly.
- When an API needs stronger authenticationSee how acr and auth_time describe the sign-in behind a token, then follow a step-up challenge from a 401 insufficient_user_authentication, through acr_values and max_age, to a successful retry.
- Handling unmet authentication requirementsHandle step-up requirements that cannot be met, avoid sign-in loops, keep separate tokens for different needs, and write the API's authentication check carefully.