Skip to main content

Issuer Identification

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

OAuth 2.0 Authorization Server Issuer Identification (RFC 9207) adds an iss parameter to every authorization response. Clients that talk to more than one authorization server can use it to verify that the authorization code they just received actually came from the authorization server they redirected the user to. This defeats the "mix-up" class of attack, where an attacker tricks a client into delivering a code minted by Server A to Server B.

OAuth 2.1 incorporates RFC 9207 as recommended behavior. Choreo Identity & Access Management always includes the parameter; there is nothing to enable.

How It Works​

Every successful authorization response includes iss alongside code and state:

HTTP/1.1 302 Found
Location: https://app.example.com/callback
?code=SplxlOBeZQQYbYS6WxSbIA
&state=xyz
&iss=https://<DATA_PLANE_URL>

The same parameter appears on error responses too:

HTTP/1.1 302 Found
Location: https://app.example.com/callback
?error=access_denied
&state=xyz
&iss=https://<DATA_PLANE_URL>

Discovery (/.well-known/oauth-authorization-server) advertises the support:

{
"authorization_response_iss_parameter_supported": true,
"issuer": "https://<DATA_PLANE_URL>",
...
}
How Choreo Identity & Access Management Implements It
AspectBehavior
Included on successYes, every code response
Included on errorYes, every error response that goes via redirect
ValueThe configured issuer URL of the Choreo Identity & Access Management instance
Per-client opt-outNone: the parameter is always sent
Discovery advertisementauthorization_response_iss_parameter_supported: true

Try It in Choreo Identity & Access Management​

No configuration is needed. The behavior is on by default and cannot be disabled.

How Clients Should Validate iss​

A client that talks to multiple authorization servers must compare the iss parameter to the authorization server's expected issuer before exchanging the code:

function handleCallback(url) {
const params = new URL(url).searchParams;
const iss = params.get('iss');

if (iss !== EXPECTED_ISSUER) {
throw new Error(`Mix-up detected: response came from ${iss}, expected ${EXPECTED_ISSUER}`);
}

// Safe to exchange the code now.
return exchangeCode(params.get('code'), params.get('state'));
}

Clients that talk to a single authorization server should still verify iss defensively: the cost is one string comparison.

Was this page helpful?