Skip to main content

Pushed Authorization Requests (PAR)

Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Pushed Authorization Requests (RFC 9126) let a client send authorization parameters to Choreo Identity & Access Management over a direct, authenticated back-channel before redirecting the user's browser to /oauth2/authorize. Choreo Identity & Access Management stores the parameters and returns an opaque request_uri that the client uses in the redirect.

PAR removes sensitive parameters (scope, redirect_uri, state, claims, resource, code_challenge) from the browser URL and from any intermediate logs. It also lets Choreo Identity & Access Management reject tampered authorization requests at the source: once a request is pushed, the only thing that can travel through the front-channel is the opaque request_uri.

How It Works​

How Choreo Identity & Access Management Implements It
AspectBehavior
EndpointPOST /oauth2/par
Client authenticationRequired, same method as /oauth2/token (see Client Authentication Methods)
Request lifetimeThe returned request_uri is single-use and expires after a short TTL
request_uri formaturn:ietf:params:oauth:request_uri:<opaque>
Per-application enforcementrequirePushedAuthorizationRequests: true on the application requires PAR for every authorization request
Global enforcementNot available on Choreo Identity & Access Management hosted tenants. Require PAR on each application instead
DPoP interactionWhen DPoP is in use, a DPoP proof on the PAR request binds the resulting authorization code to the proof's public key
Failure modeDirect GET /oauth2/authorize requests without a request_uri are rejected with invalid_request when PAR is required

Try It in Choreo Identity & Access Management​

Enable per Application​

  1. Open Applications or Agents in the Choreo Identity & Access Management Console and select your client.
  2. Open the Advanced tab.
  3. Toggle Require pushed authorization requests on.
  4. Save.
Deploy your changes

Saving a change does not make it live. You author in the control plane, and your users sign in on a separate data plane, so a change takes effect in an environment only after you deploy it. Go to Deploy, deploy the latest version to your first environment, then promote it to the next environment when you are ready.

Auto-sync deploys saved changes to your first environment within seconds. Turning it on is your choice, per project. See Deploy a Version, or learn why you deploy and how auto-sync works.

Push and Redirect​

# 1. Push the request
curl -X POST https://<DATA_PLANE_URL>/oauth2/par \
-u "$CLIENT_ID:$CLIENT_SECRET" \
-d "response_type=code" \
-d "client_id=$CLIENT_ID" \
-d "redirect_uri=https://app.example.com/callback" \
-d "scope=openid profile" \
-d "state=xyz" \
-d "code_challenge=$CODE_CHALLENGE" \
-d "code_challenge_method=S256"

Response:

{
"request_uri": "urn:ietf:params:oauth:request_uri:abc123...",
"expires_in": 60
}
# 2. Redirect the user
GET /oauth2/authorize
?client_id=$CLIENT_ID
&request_uri=urn:ietf:params:oauth:request_uri:abc123...

Was this page helpful?