Skip to content

Conversation

@dopry
Copy link
Member

@dopry dopry commented Oct 20, 2023

Fixes #1336

Description of the Change

Add scheme validation with detailed error messaged to AllowedURIValidator, and use in place of RedirectURIValidator

  • add support for custom scheme validation error messages.
  • deprecate RedirectURIValidator
  • deprecate WildcardSet

Checklist

  • PR only contains one change (considered splitting up PR)
  • unit-test added
  • documentation updated
  • CHANGELOG.md updated (only for user relevant changes)
  • author name in AUTHORS

@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

Merging #1345 (3da727f) into master (584627d) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1345      +/-   ##
==========================================
+ Coverage   97.48%   97.54%   +0.05%     
==========================================
  Files          32       32              
  Lines        2111     2120       +9     
==========================================
+ Hits         2058     2068      +10     
+ Misses         53       52       -1     
Files Coverage Δ
oauth2_provider/models.py 98.90% <100.00%> (+0.26%) ⬆️
oauth2_provider/oauth2_validators.py 94.09% <ø> (-0.02%) ⬇️
oauth2_provider/validators.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dopry dopry force-pushed the refactor/just-one-uri-validator branch 7 times, most recently from e8e80cb to 2dc944f Compare October 20, 2023 16:44
@dopry dopry force-pushed the refactor/just-one-uri-validator branch from 2dc944f to 3da727f Compare October 20, 2023 17:01
@dopry dopry requested a review from n2ygk October 20, 2023 18:47
@n2ygk n2ygk merged commit 4c13679 into django-oauth:master Oct 20, 2023
@dopry dopry deleted the refactor/just-one-uri-validator branch October 20, 2023 19:00
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.

Fix encapsulation for RedirectURIValidator

2 participants