providers/saml: lowercase acs URLs before checking

closes #249
This commit is contained in:
Jens Langhammer 2020-10-01 10:04:13 +02:00
parent 2e1849a732
commit a5420fe019

View file

@ -47,7 +47,7 @@ class AuthNRequestParser:
request_acs_url = root.attrib["AssertionConsumerServiceURL"] request_acs_url = root.attrib["AssertionConsumerServiceURL"]
if self.provider.acs_url != request_acs_url: if self.provider.acs_url.lower() != request_acs_url.lower():
msg = ( msg = (
f"ACS URL of {request_acs_url} doesn't match Provider " f"ACS URL of {request_acs_url} doesn't match Provider "
f"ACS URL of {self.provider.acs_url}." f"ACS URL of {self.provider.acs_url}."