Skip to content

PR #197 fix removed after merge #258

Closed
@mthlemos

Description

@mthlemos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions