Skip to content

enhance auth server discovery with OAuth2 and OIDC metadata support #976

Description

@ihrpr

Activity

  1. LucaButBoring commented on Jun 24, 2025

    @LucaButBoring
    Contributor

    @ihrpr Are you already working on implementing this, or planning to prior to the next spec release? Hoping to pick it up if not, as it'd enable using Cognito as an AS instead of needing a custom proxy. Looks like a small code change, as you already fixed the path routing for RFC8414 metadata earlier today (which this depends on).

  2. manthram commented on Jun 24, 2025

    @manthram

    @LucaButBoring For Cognito, we have another issue with the metadata published on the endpoint. Though it supports S256 and PKCE, Cognito doesnt publish it. As the client specification expects it and checks for it, we end up with an error. I had to write a proxy to get the metadata from Cognito and add the S256 code_challenge_methods_supported option before responding to the client.

  3. LucaButBoring commented on Jun 30, 2025

    @LucaButBoring
    Contributor

    Raised a PR for this (#1061).

    As the client specification expects it and checks for it

    @manthram is that the case on the latest SDK version? From what I can see, the client code does assume S256 is supported, but doesn't appear to actually enforce that it's declared. code_challenge_methods_supported isn't defined for OIDC to begin with. The metadata type (OAuthMetadata) doesn't appear to enforce S256 during validation, either.

  4. linked a pull request that will close this issueSupport falling back to OIDC metadata for auth #1061on Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions