Skip to content

Does not validate Issuer Identifier #13

Description

@vickeybrown

Before reporting an issue

Area

adapter/javascript

Describe the bug

keycloak/keycloak#20621 added support for RFC 9207, which requires clients validate that the Issuer Identifier returned from the Authorization Code Flow response is what is expected before proceeding with the authorization grant. However, there was no logic added in Keycloak.js to do this check.

Version

main

Expected behavior

Keycloak.js validates that the "iss" parameter from the Authorization Code Flow response matches the issuer identifier of the authorization server where the authorization request was sent to, as described in https://datatracker.ietf.org/doc/html/rfc9207#name-validating-the-issuer-ident

Actual behavior

Keycloak.js does nothing with the "iss" parameter.

How to Reproduce?

Not sure how to swap out Issuer values halfway through the Auth Code process, but looking at the Keycloak.js shows there's no logic around the "iss" parameter

Anything else?

No response

Activity

  1. jonkoops commented on Oct 25, 2023

    @jonkoops
    Contributor

    @tnorimat just making sure you are aware of this issue. I'll have to take a look at how much of an effort this would be.

  2. transferred this issue fromkeycloak/keycloakon Feb 3, 2025
  3. changed the title [-]keycloak.js does not validate Issuer Identifier[/-] [+]Does not validate Issuer Identifier[/+] on Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Fields

Value

None yet

Effort

None yet

Votes

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions