Skip to content

Correct validator docstrings against observed behavior - #285

Merged
aaronjae22 merged 1 commit into
mainfrom
refactor/validator-dosctring-testing
Aug 14, 2026
Merged

Correct validator docstrings against observed behavior#285
aaronjae22 merged 1 commit into
mainfrom
refactor/validator-dosctring-testing

Conversation

@aaronjae22

Copy link
Copy Markdown
Collaborator

This was checked against a real authorize request.

validate_redirect_uri documented that returning False raises InvalidRedirectURIError and that DOT "renders an error page." which was a bit off. oauthlib raises MismatchingRedirectURIError when our validator returns False, and the response is a 400 re-render of oauth2_provider/authorize.html.

Also the scope-check note implied DOT owned the authorization-time check when both validate_scopes calls are ours.

@aaronjae22 aaronjae22 self-assigned this Aug 12, 2026
@aaronjae22
aaronjae22 requested a review from lisad August 12, 2026 21:37
@aaronjae22
aaronjae22 force-pushed the refactor/validator-dosctring-testing branch from 1ab9e59 to cc3dcb8 Compare August 14, 2026 17:32
@aaronjae22
aaronjae22 force-pushed the refactor/validator-dosctring-testing branch from cc3dcb8 to cb01762 Compare August 14, 2026 17:43
Base automatically changed from feat/production-https-redirect-policy to main August 14, 2026 17:49
@aaronjae22
aaronjae22 force-pushed the refactor/validator-dosctring-testing branch from cb01762 to 5b00171 Compare August 14, 2026 17:49
@aaronjae22
aaronjae22 merged commit 2de4243 into main Aug 14, 2026
3 checks passed
@aaronjae22
aaronjae22 deleted the refactor/validator-dosctring-testing branch August 14, 2026 18:07
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