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
Specify your setup
release-5.0.0branchDescribe 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.0branch.node-oauth2-server/lib/handlers/authorize-handler.js
Line 370 in b97f6c7
node-oauth2-server/lib/handlers/authorize-handler.js
Line 381 in b97f6c7
Expected behavior
Should also receive the
code_challengeandcode_challenge_methodthrough the query params.Additional context
None