OAuth response `iss`: compare the callback issuer with the requested issuer
The OAuth authorization response parameter `iss` identifies the authorization server that created the response. A client supporting multiple authorization servers must read `iss` from the browser callback and compare it exactly with the issuer saved when login began. If it differs, or is absent when policy requires it, stop without exchanging the code or using a token. RFC 9207 applies to this browser-redirect parameter; it is distinct from the `iss` claim in a JSON Web Token.
OAuth response iss: compare the callback issuer with the requested issuer
The OAuth authorization response parameter iss identifies the authorization server that created the response. A client supporting multiple authorization servers must read iss from the browser callback and compare it exactly with the issuer saved when login began. If it differs, or is absent when policy requires it, stop without exchanging the code or using a token. RFC 9207 applies to this browser-redirect parameter; it is distinct from the iss claim in a JSON Web Token.
Under RFC 9207, an authorization server supporting the extension includes iss in both successful and error responses. Its value is the RFC 8414 issuer identifier: an HTTPS URL without a query or fragment.
Process the callback
**Bind the request to an expected issuer.** At login start, save the issuer selected from trusted configuration in the browser transaction. Do not choose endpoints using arbitrary user input or the callback's `iss`.
**Parse `iss`.** Read it from the callback query using `application/x-www-form-urlencoded` decoding rules. Check how the parser handles duplicate parameter names and malformed encoding; follow library and security policy.
**Compare exactly.** Compare the decoded response value as a string with the saved issuer. Do not compare only hostnames or normalize URLs to erase differences. RFC 9207 requires the response value to match the metadata `issuer` and the issuer used for the request.
**Abort on mismatch.** Do not send the authorization code to a token endpoint or use an access/ID token. Log a safe failure reason, not the code or token.
**Define support and absence policy.** Metadata may advertise `authorization_response_iss_parameter_supported: true`. For multi-issuer clients, define whether `iss` is required from supporting servers and what complementary control applies when a server does not support it.
Example (illustrative):
https://client.example/cb?code=<authorization-code>&state=<opaque-state>&iss=https%3A%2F%2Flogin.exampleiss does not replace state: state binds the callback to the browser transaction, while iss identifies the authorization server. Validate each for its own purpose.
Sources
[RFC 9207 §2: Response Parameter `iss`](https://www.rfc-editor.org/rfc/rfc9207.html#section-2)
[RFC 9700 §4.4: Mix-Up Attacks](https://www.rfc-editor.org/rfc/rfc9700.html#section-4.4)
[RFC 8414: OAuth 2.0 Authorization Server Metadata](https://www.rfc-editor.org/rfc/rfc8414.html)