Skip to content

Conversation

@dopry
Copy link
Member

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

codecovbot 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 
FilesCoverage Δ
oauth2_provider/models.py98.90% <100.00%> (+0.26%)⬆️
oauth2_provider/oauth2_validators.py94.09% <ø> (-0.02%)⬇️
oauth2_provider/validators.py100.00% <100.00%> (ø)

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

@doprydopryforce-pushed the refactor/just-one-uri-validator branch 7 times, most recently from e8e80cb to 2dc944fCompareOctober 20, 2023 16:44
@doprydopryforce-pushed the refactor/just-one-uri-validator branch from 2dc944f to 3da727fCompareOctober 20, 2023 17:01
@doprydopry requested a review from n2ygkOctober 20, 2023 18:47
@n2ygkn2ygk merged commit 4c13679 into django-oauth:masterOct 20, 2023
@doprydopry deleted the refactor/just-one-uri-validator branch October 20, 2023 19:00
Sign up for freeto 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

@dopry@n2ygk