Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The error message for invalid pkce method is not affected by pkce_code_challenge_methods configuration #1746

Closed
ransombriggs opened this issue Oct 31, 2024 · 2 comments

Comments

@ransombriggs
Copy link
Contributor

Steps to reproduce

I am upgrading to get the functionality in #1735 because we do not accept the plain method but noticed that the error message still says that plain is an acceptable method.

What we need to do to see your problem or bug?

  Doorkeeper.configure
    pkce_code_challenge_methods ["S256"]
  end
        # from a request spec that we have for our hack that I am trying to remove
        get oauth_authorization_path,
            params: {
              client_id: application.uid,
              redirect_uri: application.redirect_uri,
              response_type: "code",
              scope: scope,
              code_challenge: code_challenge,
              code_challenge_method: "plain",
            },
            headers: {
              "cookie" => session_cookie,
            }

Expected behavior

The code challenge method must be S256.

Actual behavior

The code challenge method must be plain or S256.

@nbulaj
Copy link
Member

nbulaj commented Dec 6, 2024

I believe we can close this one via #1747 , right?

@ransombriggs
Copy link
Contributor Author

yup, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants