File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ def validate_referral_url(request, url):
113113 )
114114 try :
115115 if saml_strict_url_validation :
116+ # This will also resolve Django URL pattern names
116117 url = resolve_url (url )
117118 except NoReverseMatch :
118119 logger .debug ("Could not validate given referral url is a valid URL" )
Original file line number Diff line number Diff line change @@ -151,6 +151,8 @@ example: 'home' could be '/home' or 'home/'.
151151If this is unfeasible, this strict validation can be turned off by setting
152152``SAML_STRICT_URL_VALIDATION `` to ``False `` in settings.py.
153153
154+ During validation, `Django named URL patterns<https://docs.djangoproject.com/en/dev/topics/http/urls/#naming-url-patterns> `_
155+ will also be resolved. Turning off strict validation will prevent this from happening.
154156
155157Preferred sso binding
156158=====================
You can’t perform that action at this time.
0 commit comments