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

rfc7636: validate code challenge format #638

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

amCap1712
Copy link
Contributor

Section 4.2 of RFC 7636 mentions the ABNF form to which the code challenge should adhere. authlib currently accepts any string in code_challenge without validating if it matches the format specified in the RFC. Fix the same and also update relevant tests.

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Other, please describe:

  • You consent that the copyright of your pull request source code belongs to Authlib's author.

[Section 4.2 of RFC 7636](https://datatracker.ietf.org/doc/html/rfc7636#section-4.2) mentions the ABNF
form to which the code challenge should adhere. authlib currently accepts any string
in code_challenge without validating if it matches the format specified in the RFC.
Fix the same and also update relevant tests.
@lepture lepture merged commit dc3d77d into lepture:master Apr 8, 2024
11 checks passed
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

Successfully merging this pull request may close these issues.

2 participants