OAuth JAR: sign or encrypt authorization requests with JWTs
Learn how JAR packages OAuth authorization parameters in a JWT Request Object, when signing differs from encryption, and how it relates to PAR.
OAuth JAR: sign or encrypt authorization requests with JWTs
JWT-Secured Authorization Request (JAR, RFC 9101) lets an OAuth client place authorization parameters in a JWT Request Object for the authorization server to validate, instead of sending each parameter directly as a URL query value. Signing can protect request integrity and authenticate its source; encryption can hide its contents. A signed JWT is not ciphertext, so sending it as a request value in a browser URL can expose its claims.
What does a Request Object contain?
A Request Object represents parameters such as response_type, client_id, redirect_uri, scope, state, nonce, and a PKCE challenge as JWT claims. The server checks the signature or encryption and verifies that the request fits the registered client and server policy. JWS signing and JWE encryption serve different purposes. If confidentiality is needed, do not assume a signed JWT hides claims. When both are used, RFC 9101 requires signing first and encrypting the signed object.
By value and by reference
| Mode | Request parameter | What it means |
|---|---|---|
| By value | request=<Request Object JWT> | The authorization request carries the JWT itself. It may be signed or signed and encrypted. This can make the request large; JWS claims remain readable. |
| By reference | request_uri=<URI for retrieving the object> | The request carries a location rather than the JWT body. This can reduce URL length and separate the body from the browser URL, but the server must retrieve it safely and verify its source. |
JAR and PAR are related but distinct. JAR defines a JWT format for representing and protecting request contents. PAR defines a delivery method: the client POSTs the request directly to the authorization server and continues the browser flow with the returned request_uri. A PAR request can contain a JAR Request Object, combining the two where supported.
Example flow
Check the authorization server’s registration or documentation for supported Request Object signing and encryption algorithms.
Put the required OAuth parameters in a Request Object. Per RFC 9101 recommendations, include `iss` and `aud`; RFC examples use the client identifier as `iss`, but validate claim meaning and values against the server’s registration and profile. Use the authorization server’s issuer value for `aud`.
Sign with a supported key and algorithm; if confidentiality is also needed, sign and then encrypt.
Deliver the object as the `request` value or use the registered `request_uri` method supported by the authorization server.
The server validates the JWT or encrypted object, issuer, audience, expiry, client registration, and consistency between the object and any outer parameters.
Only after validation should the server continue user authentication and consent, then resume the authorization-code flow.
Implementation checks
**Manage keys and algorithms explicitly.** Configure only algorithms both parties support; do not bypass protection with an unverified form such as `none`. Follow trusted registration and metadata policy for key selection and rotation.
**Validate JWT claims.** Check more than the signature: verify issuer, audience, validity period, expiry, and registered-client binding. A JAR Request Object and a client-authentication assertion have different purposes and validation rules.
**Do not merge duplicate parameters arbitrarily.** RFC 9101 uses parameters inside the Request Object rather than same-named outer query values. The outer `client_id` must match the object’s `client_id`; reject a mismatch and avoid unnecessary duplicate values.
**Use encryption when confidentiality is needed.** Signed JWT claims are encoded, not hidden. Consider JWE or a supported method such as PAR to avoid exposing sensitive values in authorization URLs or logs.
**Treat `request_uri` as a separate risk.** Fetching an object from an external URI can enable request forgery, denial of service, or tracking. Restrict allowed origins and apply TLS, size and time limits, and suitable cache policy.
**Keep other OAuth protections.** JAR does not replace PKCE, `state`, redirect URI validation, consent controls, or token validation.
Summary
JAR represents an OAuth authorization request as a JWT Request Object to protect integrity and source, with encryption available for confidentiality. A signed JWT sent as request is not hidden. Validate signature, audience, expiry, parameter consistency, and any request_uri source; combine with PAR when useful, and retain the rest of the flow’s OAuth protections.
References
[RFC 9101 — JWT-Secured Authorization Request (JAR)](https://www.rfc-editor.org/rfc/rfc9101.html)
[RFC 9126 — OAuth 2.0 Pushed Authorization Requests (PAR)](https://www.rfc-editor.org/rfc/rfc9126.html)
[RFC 9700 — Best Current Practice for OAuth 2.0 Security](https://www.rfc-editor.org/rfc/rfc9700.html)