Building a request object
PARAn OAuth extension, RFC 9126, in which the client sends its authorization request straight to the authorization server and gets back a short-lived request_uri. The browser carries only that reference, so the parameters cannot be read or changed on the way. protects the printer's request while it travels, but once it arrives the only evidence of who sent it is the photo service's own note. A request object is the authorization request as a JWT the printer signs, so proof of who wrote it, and that nobody changed it, stays with the request wherever it goes and whoever examines it later.
Protection that ends with the connection
With PAR, the printer's request reaches the photo service over a direct, authenticated connection. Once it arrives, the request is a set of form fields in the photo service's storage, and the only evidence of who sent it is the service's own note that the printer authenticated. For connecting Ava's photo account, that is usually enough. Some requests need assurance that stays with the request itself.
HTTPSHTTP protected by TLS, so traffic is encrypted and checked for changes while it travels. It protects the connection, but does not prove that the site at the other end is honest. protects a message between the two ends of one connection. Those ends are not always the parties you have in mind. A service often ends the encrypted connection at a load balancer or gateway, and the request then passes between internal systems before the part of the service that makes the authorization decision reads it. A request carried by a browser is protected on its way into the browser and on its way out, but not inside it, which is where the problems described in Pushing an authorization request arise.
Not every authorization serverIn OAuth, the service that handles a person's sign-in and approval and decides which tokens to issue to a client. It may belong to the same company as the API, but its job is separate. offers PAR either. Where a request must still travel through the browser, anyone can write one that names the printer, and nobody can tell afterwards which values the printer chose.
The Digital signatures lesson described the alternative with a signed access tokenA token that a client presents to an API to use access it has been granted, usually limited in what it allows and how long it lasts. It authorizes API calls; it does not tell the client who signed in.: assurance that travels with the message itself, however many systems it passes through. An authorization request can be treated the same way.
A request that carries its own proof
JWT-Secured Authorization Requests, usually called JAR and published as RFC 9101 in 2021, put the authorization request parameters inside a JWT. Each parameter becomes a claim, and the client signs the whole tokenA piece of data issued by a trusted service that a client presents as a credential, for example to call an API or to report a sign-in. Some tokens carry readable claims; others are random strings that only the issuer can interpret. with its private keyThe half of a key pair that its owner keeps to themselves and uses to create signatures or decrypt data. Anyone who obtains it can act as its owner.. The result is called a request object. The authorization server verifies the signatureA value made with a private key that lets anyone holding the matching public key check that a message came from the key's holder and has not been changed. It proves origin and integrity; it does not hide the message. with the public keyThe half of a key pair that can be shared freely. It checks signatures made with the matching private key and can encrypt data that only that private key can decrypt. registered for the client, and only then reads the parameters.
A verified signature tells the server two things. The parameters have not changed since the client signed them, because any change would make verification fail. And the request came from whoever holds the client's private key. The client can also encryptTransforming data so that only someone holding the right key can read it. It protects confidentiality and, unlike hashing, is designed to be reversed by the key holder. the request object, so that only the authorization server can read the parameters, even if the object passes through a browser.
Because the protection is inside the object, the route matters less. A request object can travel in the browser URLA web address, such as https://photos.example/api/albums/42?limit=10. It names how to connect (https), the domain, the path to a particular page or resource, and any extra parameters after the question mark., be published at an address the server fetches, or be pushed to a PAR endpoint. OpenID ConnectAn identity layer on top of OAuth 2.0 that lets an application sign people in with an account at another service. It adds the ID token, standard claims, and discovery to the OAuth exchange. used request objects before JAR existed, and JAR standardized the idea for OAuthA framework that lets a person give an application limited access to their resources at another service, using tokens instead of sharing their password. OAuth is about access; OpenID Connect adds sign-in. in general.
| Protection | What it covers | What remains afterwards |
|---|---|---|
| HTTPS | One connection between two endpoints. | Nothing that someone else can check later. |
| PAR with client authentication | The route from the client to the authorization server. | The server's own record that the client authenticated. |
| A signed request object | The request itself, along any route. | A signature that anyone with the client's public key can verify. |
Evidence that lasts
That last column matters most when money is involved. Suppose the printer offers Pay by bank for photo books. Instead of typing card details, Ava chooses her bank, Lakeside Bank, at auth.lakeside-bank.example. When she pays for a 42.50 EUR photo book this way, the printer, registered at the bank as photo-printer-pay, asks the bank for authorization to make that payment, and the bank asks Ava to approve it.
Months later there is a dispute. Perhaps the printer insists it requested a different amount, or the bank's auditors need to show exactly what the printer asked for. If the bank kept the signed request object, it can produce it, and anyone holding the printer's public key can confirm that it verifies. Only the holder of the printer's private key could have created it.
This property is called non-repudiation: the owner of a signing key cannot convincingly deny having signed data that verifies with their public key. It depends on two things: the key must be asymmetric, and the signature must cover the request itself. A request pushed over an authenticated connection falls short. If the printer authenticated with a client secret, the bank holds the same secret. If it authenticated with a signed client assertion, the key is asymmetric, but that signature covers the printer's identity and a moment in time, not the parameters sent beside it. Either way, the bank's record of what was asked for is only the bank's word. A request object signed with a shared secret, which JWT also allows, proves nothing to an outsider either, because the bank could have produced it. And an HTTPS connection leaves nothing behind that anyone else can verify.
Non-repudiation has limits worth stating plainly. A signature proves that the key signed the request, not that a person at the printing company intended it. If the private key was stolen, the signature proves only that the thief had it. And it covers one message at a time, not the whole exchange that followed.
What a signature does not settle
A signature does not stop a request object from being copied. Someone who obtains one can present it again while it remains valid, which is why the object the printer builds below carries an expiry time and a unique identifier the server can track. A signature also protects nothing if the server goes on accepting ordinary unsigned requests for the same client, because an attacker would simply send one of those. The server has to refuse those for a client that signs, which Validating a request object describes.
And signing the request does nothing for the response. The code and state still return through the browser as plain parameters, with nothing to show where they came from. Protecting them takes a signature from the other side, the authorization server's, the subject of Protecting an authorization response.
From parameters to claims
To sign its authorization requests, the printer needs a key pair whose public key the photo service holds. Secrets and signed assertions described that arrangement for client authentication, and the printer now adopts it. It creates the key printer-2026-10, keeps the private key on its backend, publishes the public key in its key set at https://printer.example/oauth/jwks.json, and registers that address with the photo service.
At the same time, it switches its registration from client_secret_basic to private_key_jwt. Once the printer manages a key pair and a published key set, keeping a shared secret beside them would mean one more credential to protect and rotate, and the weaker of the two. Deployments that sign their requests for assurance typically authenticate with keys as well, and the high-assurance profiles mentioned in that lesson require it. From here on, the printer authenticates with client assertions signed by the same key.
Building a request object then takes three decisions: which claims go into it, how it reaches the photo service, and whether to encrypt it. All domains, keys, and identifiers in these examples are fictional. Here is the printer's familiar authorization request as a request object, decoded so that its header and claims are readable:
Header:
{
"alg": "ES256",
"kid": "printer-2026-10",
"typ": "oauth-authz-req+jwt"
}
Claims:
{
"iss": "photo-printer",
"aud": "https://auth.photos.example",
"response_type": "code",
"client_id": "photo-printer",
"redirect_uri": "https://printer.example/oauth/callback",
"scope": "photos.read",
"state": "demo-attempt-7",
"code_challenge": "qd-75t-gnweZAhIl6REjxxgFnPXGwvqYcxq3vlsaJYQ",
"code_challenge_method": "S256",
"iat": 1790845200,
"nbf": 1790845200,
"exp": 1790845500,
"jti": "demo-request-object-7"
}The middle of the claims is the authorization request from earlier lessons, from response_type to code_challenge_method. Each parameter becomes a claim with the same name. Values are ordinary JSON: strings stay strings and numbers become JSON numbers. The return address is no longer URL-encoded, because it is no longer inside a URL.
The object must contain every parameter the server needs to process the request, including any extensions the printer uses. Two parameters are never allowed inside it: request and request_uri, the parameters that carry a request object. An object cannot point to another object.
Claims that protect the object
The remaining claims are not authorization parameters. They describe the object itself, so that the signature covers who made it, for whom, and for how long.
iss is the printer's client ID, naming who issued the object, and aud is the photo service's issuer identifier, naming who should accept it. The specification says a signed request object should contain both. An object addressed to the photo service is useless at Pixel Vault, the other photo service the printer supports, even if the printer signs its requests for both with the same key.
iat, nbf, and exp record when the object was issued, when it becomes valid, and when it expires, as Unix timestamps. These values correspond to 2026-10-01 09:00 UTC for the first two and 09:05 UTC for the last, so the object works for five minutes. jti gives it a unique identifier, which lets the server refuse it if it is presented twice. RFC 9101 requires none of these four claims. It reserves their names, so that no authorization request parameter can ever give them another meaning, and leaves the rest to servers. Many servers require them, and high-assurance profiles require nbf and exp with a limited lifetime.
The header's typ value, oauth-authz-req+jwt, is the media type registered for request objects, written without its application/ prefix. Like the at+jwt type on the signed access token in Digital signatures, it declares what kind of JWT this is, and that matters here because the printer now signs two kinds of JWT with one key. A server that requires this type at the authorization endpoint refuses anything else offered as a request object, including one of the printer's client assertions.
The opposite direction depends on the claims. A request object's iss and aud look exactly like a client assertion's, and a server checking a client assertion cannot rely on a type to tell them apart: client assertions were defined without one, and newer guidance that recommends client-authentication+jwt also advises servers not to reject assertions that lack it. What client assertions have always required is that sub name the client. RFC 9101 therefore advises never using the client ID as a request object's sub, and the printer's object has no sub at all, so it fails if anyone presents it as a client assertion. The specification also mentions a third safeguard, a separate key for each purpose, which some deployments adopt.
Sending it by value or by reference
The printer signs the object and can now send it in one of three ways. The simplest puts it directly in the browser URL, in the request parameter. This is sending it by value:
https://auth.photos.example/authorize
?client_id=photo-printer
&request=eyJhbGciOiJFUzI1NiIsImtpZCI6InByaW50ZXItMjAyNi0xMCIsInR5cCI6Im9hdXRoLWF1dGh6LXJlcStqd3QifQ.eyJpc3MiOiJwaG90by1wcmludGVyIiwiYXVkIjoiaHR0cHM6Ly9hdXRoLnBo...The object is shortened here for display. client_id also appears outside it, and the two values must be identical. Signing makes the request longer: the ordinary URL for this request is about 270 characters, and this one is nearly 770. A request with more detail grows accordingly.
Sending it by reference keeps the URL short. The printer publishes the object at an HTTPS address of its own and passes that address in request_uri:
https://auth.photos.example/authorize
?client_id=photo-printer
&request_uri=https%3A%2F%2Fprinter.example%2Foauth%2Frequests%2Fdemo-request-object-7
The photo service then fetches it:
GET /oauth/requests/demo-request-object-7 HTTP/1.1
Host: printer.example
HTTP/1.1 200 OK
Content-Type: application/oauth-authz-req+jwt
eyJhbGciOiJFUzI1NiIsImtpZCI6InByaW50ZXItMjAyNi0xMCIsInR5cCI6Im9hdXRoLWF1dGh6LXJlcStqd3QifQ...The address must use HTTPS and be reachable by the photo service, and the whole value should not exceed 512 characters. Because anyone who learns the address could fetch the object, a real address contains a long random part and the object is removed after use or a short time. Many servers accept references only on addresses the client registered in advance.
The third way is to push the object to a PAR endpoint, where the server issues the reference itself. Using JAR with PAR follows that route.
Encrypting the request object
Signing protects the request from changes, but anyone who sees the object can decode and read it. Sent by value, it passes through the browser and every place a URL is recorded. If a request carries something sensitive, such as personal details or the particulars of a payment, the specification says the client should also encrypt it.
The order is fixed: sign first, then encrypt. The printer wraps the signed object in a JWE addressed to the photo service's public encryption key, the format Encrypting tokens with JWE described. The result is a nested JWT, a signed JWT inside an encrypted one, and only the photo service, holding the private key, can open it.
Encryption is not a substitute for the signature, for the reason that lesson gave: anyone can encrypt to a public key, so decrypting an object says nothing about who created it. The server decrypts, then verifies the signature inside.
Both sides have to agree on algorithms. The photo service lists those it accepts in its metadata, under names such as request_object_signing_alg_values_supported and request_object_encryption_alg_values_supported, and a client can record its own choice in its registration, for example request_object_signing_alg set to ES256. With that settled, the printer's object is complete: a signed statement of exactly what it asks for, addressed to one authorization server and valid for five minutes.
Check your understanding
Try these questions before moving on. If an answer isn't right, use the feedback and try again.
Try it in the Lab
- Sign a request object, verify it as an outsider and send it by valueContrast the tenant's record of a pushed request with a request object lab-printer signs, verify it with only the public key, replay it, bind it to one server, and encrypt it to the tenant.