We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b97f6c7 commit ca43d4aCopy full SHA for ca43d4a
lib/handlers/authorize-handler.js
@@ -367,7 +367,7 @@ class AuthorizeHandler {
367
}
368
369
getCodeChallenge (request) {
370
- return request.body.code_challenge;
+ return request.body.code_challenge || request.query.code_challenge;
371
372
373
/**
@@ -378,7 +378,7 @@ class AuthorizeHandler {
378
* (see https://www.rfc-editor.org/rfc/rfc7636#section-4.4)
379
*/
380
getCodeChallengeMethod (request) {
381
- const algorithm = request.body.code_challenge_method;
+ const algorithm = request.body.code_challenge_method || request.query.code_challenge_method;
382
383
if (algorithm && !pkce.isValidMethod(algorithm)) {
384
throw new InvalidRequestError(`Invalid request: transform algorithm '${algorithm}' not supported`);
0 commit comments