Skip to content

Fix missing 'state' param in authorization error responses#751

Merged
lepture merged 2 commits intoauthlib:mainfrom
azmeuk:525-state-param
Apr 21, 2025
Merged

Fix missing 'state' param in authorization error responses#751
lepture merged 2 commits intoauthlib:mainfrom
azmeuk:525-state-param

Conversation

@azmeuk
Copy link
Member

@azmeuk azmeuk commented Apr 19, 2025

This is a refactoring that catches all errors from the authorization endpoint and dynamically add a state parameter instead of manually setting it on all errors.
This ensures the state parameter will always be present, and developers don't have to explicitly set (or forget) it.

Fixes #525

@azmeuk azmeuk added bug role:authorization_server Concerns a server implementation labels Apr 19, 2025
@lepture lepture merged commit 21f7f50 into authlib:main Apr 21, 2025
7 checks passed
azmeuk pushed a commit to azmeuk/authlib that referenced this pull request Apr 21, 2025
Fix missing 'state' param in authorization error responses
@azmeuk azmeuk deleted the 525-state-param branch April 22, 2025 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

role:authorization_server Concerns a server implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Authorization error responses are missing the state parameter

2 participants