diff options
author | Mark Gregson <mark.gregson@linkdigital.com.au> | 2017-03-07 15:49:07 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-07 15:49:07 +1100 |
commit | aec3c88a353d6fd68981c24b15fe2778e33839be (patch) | |
tree | e60b08f58642cb85b1045ce76d35bb80d306c0ca | |
parent | c5da9786b4eb43536a62b99a7e36388775b6aa70 (diff) | |
parent | e1e3b7755f552f31fce9648eb48e0db3ba1a9a24 (diff) | |
download | pysaml2-aec3c88a353d6fd68981c24b15fe2778e33839be.tar.gz |
Merge pull request #2 from DataShades/sp-repoze-scriptname-fix
Include SCRIPT_NAME when checking whether current URL is a logout end…
-rw-r--r-- | src/saml2/s2repoze/plugins/sp.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/saml2/s2repoze/plugins/sp.py b/src/saml2/s2repoze/plugins/sp.py index 59453d95..3049cd5c 100644 --- a/src/saml2/s2repoze/plugins/sp.py +++ b/src/saml2/s2repoze/plugins/sp.py @@ -26,7 +26,7 @@ from paste.httpexceptions import HTTPInternalServerError from paste.request import parse_dict_querystring from paste.request import construct_url from saml2.extension.pefim import SPCertEnc -from saml2.httputil import SeeOther +from saml2.httputil import getpath, SeeOther from saml2.client_base import ECP_SERVICE from zope.interface import implementer @@ -477,9 +477,9 @@ class SAML2Plugin(object): pass try: - path_info = environ['PATH_INFO'] + path = getpath(environ) logout = False - if path_info in self.logout_endpoints: + if path in self.logout_endpoints: logout = True if logout and "SAMLRequest" in post: |