File tree 2 files changed +3
-0
lines changed
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):
113
113
)
114
114
try :
115
115
if saml_strict_url_validation :
116
+ # This will also resolve Django URL pattern names
116
117
url = resolve_url (url )
117
118
except NoReverseMatch :
118
119
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/'.
151
151
If this is unfeasible, this strict validation can be turned off by setting
152
152
``SAML_STRICT_URL_VALIDATION `` to ``False `` in settings.py.
153
153
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.
154
156
155
157
Preferred sso binding
156
158
=====================
You can’t perform that action at this time.
0 commit comments