Skip to content

Commit 606060f

Browse files
Merge pull request #393 from DataShades/sp-repoze-scriptname-fix
Include SCRIPT_NAME when checking if current URL is a logout endpoint
2 parents b84d55a + e7191d0 commit 606060f

File tree

1 file changed

+3
-3
lines changed
  • src/saml2/s2repoze/plugins

1 file changed

+3
-3
lines changed

src/saml2/s2repoze/plugins/sp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from paste.request import parse_dict_querystring
2727
from paste.request import construct_url
2828
from saml2.extension.pefim import SPCertEnc
29-
from saml2.httputil import SeeOther
29+
from saml2.httputil import getpath, SeeOther
3030
from saml2.client_base import ECP_SERVICE
3131
from zope.interface import implementer
3232

@@ -477,9 +477,9 @@ def identify(self, environ):
477477
pass
478478

479479
try:
480-
path_info = environ['PATH_INFO']
480+
path = getpath(environ)
481481
logout = False
482-
if path_info in self.logout_endpoints:
482+
if path in self.logout_endpoints:
483483
logout = True
484484

485485
if logout and "SAMLRequest" in post:

0 commit comments

Comments
 (0)