Skip to content

Raise a MissingCodeError when code parameter is missing#786

Merged
lepture merged 3 commits intomainfrom
fix-777
Aug 6, 2025
Merged

Raise a MissingCodeError when code parameter is missing#786
lepture merged 3 commits intomainfrom
fix-777

Conversation

@lepture
Copy link
Member

@lepture lepture commented Jul 23, 2025

ref #777

DO NOT SEND ANY SECURITY FIX HERE. Please read "Security Reporting" section
on README.

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

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

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

This affect the OAuth 2 framework clients authorize access token flow.


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

Copy link
Member

@azmeuk azmeuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, some little things:

  • The tests don't check for the missing_code string.
  • The MissingCode exception could have a more explicit description.

Copy link
Member

@azmeuk azmeuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the missing tests. This is all good now!

@azmeuk azmeuk added the role:client Concerns a client implementation label Aug 6, 2025
@lepture lepture merged commit ff92feb into main Aug 6, 2025
16 checks passed
@azmeuk azmeuk deleted the fix-777 branch August 6, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

role:client Concerns a client implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants