File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,7 @@ def identify(self, environ):
490
490
if ("CONTENT_LENGTH" not in environ or not environ ["CONTENT_LENGTH" ]) and \
491
491
"SAMLResponse" not in query and "SAMLRequest" not in query :
492
492
logger .debug ('[identify] get or empty post' )
493
- return {}
493
+ return None
494
494
495
495
# if logger:
496
496
# logger.info("ENVIRON: %s" % environ)
@@ -652,6 +652,8 @@ def _service_url(environ, qstr=None):
652
652
#noinspection PyUnusedLocal
653
653
def authenticate (self , environ , identity = None ):
654
654
if identity :
655
+ if identity .get ('user' ) and environ .get ('s2repoze.sessioninfo' ) and identity .get ('user' ) == environ .get ('s2repoze.sessioninfo' ).get ('ava' ):
656
+ return identity .get ('login' )
655
657
tktuser = identity .get ('repoze.who.plugins.auth_tkt.userid' , None )
656
658
if tktuser and self .saml_client .is_logged_in (decode (tktuser )):
657
659
return tktuser
You can’t perform that action at this time.
0 commit comments