Protecting requests and responses
Protecting the authorization request and response: pushed requests (PAR), signed requests (JAR), signed responses (JARM) and issuer identification.
Start with Pushing an authorization request
- Pushing an authorization requestSee why a browser-carried authorization request can be read, changed or forged, then push it straight to the PAR endpoint with client authentication and read the request URI it returns.
- Using the request URI and handling failuresSend the browser with only a client ID and a single-use request URI, handle errors from the push and the authorization endpoint, and require PAR so the ordinary route is closed.
- Building a request objectSee why some requests need a signature that travels with them and lasts as evidence, then build a signed request object with protective claims, send it by value or by reference, and encrypt it.
- Validating a request objectFollow the authorization server's checks on a request object, see why only its own parameters count, fetch references safely, and stop downgrades to unsigned requests.
- Using JAR with PARPush a signed request object to the PAR endpoint, keep it distinct from the client assertion beside it, and see why high-assurance profiles combine the two mechanisms.
- Protecting an authorization responseSee why an ordinary authorization response cannot prove where it came from, ask for a signed JARM response, read it claim by claim, choose a response mode, and see which checks a signature cannot replace.
- Response validation and failuresValidate a JARM response in the right order before using its code, handle signed and unsigned errors, and reconcile the iss claim with the iss parameter.
- Checking the response issuerLearn how the iss response parameter names the authorization server, how a client compares it exactly with the issuer it asked, and what to do when the check fails.