Skip to content

PR #197 fix removed after merge #258

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

Closed
mthlemos opened this issue Oct 31, 2023 · 3 comments
Closed

PR #197 fix removed after merge #258

mthlemos opened this issue Oct 31, 2023 · 3 comments

Comments

@mthlemos
Copy link

mthlemos commented Oct 31, 2023

Specify your setup

  • Operating System: macOS Sonoma 14.1
  • Node version: 18.12.1
  • npm version: Not applicable
  • version of @node-oauth/oauth2-server: release-5.0.0 branch
  • which OAuth2 workflow: Authorization Code
  • at which workflow step does the error occur: Authorization Request

Describe the bug

PR #197 fix got removed after a merge commit.

More specifically this merge commit: 6758bff

To Reproduce

This bug is currently present on the release-5.0.0 branch.

return request.body.code_challenge;

const algorithm = request.body.code_challenge_method;

Expected behavior

Should also receive the code_challenge and code_challenge_method through the query params.

getCodeChallenge (request) {
  return request.body.code_challenge || request.query.code_challenge;
}
getCodeChallengeMethod (request) {
  const algorithm = request.body.code_challenge_method || request.query.code_challenge_method;
  ...
}

Additional context

None

@jankapunkt
Copy link
Member

Thank you for reporting @mthlemos I will try to cherry pick this one and create a new RC (which is still pending since I was on vacation)

@jankapunkt
Copy link
Member

@mthlemos added this again in https://github.com/node-oauth/node-oauth2-server/releases/tag/v5.0.0-rc.5 feel free to reopen if the issue persists in rc5

@mthlemos
Copy link
Author

mthlemos commented Nov 1, 2023

Thank you very much for the quick fix @jankapunkt!

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