You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classSSO(object):
def__init__(
self,
sp,
environ,
start_response,
cache=None,
wayf=None,
discosrv=None,
bindings=None,
):
self.sp=spself.environ=environself.start_response=start_responseself.cache=cacheself.idp_query_param="IdpQuery"self.wayf=wayfself.discosrv=discosrvifbindings:
self.bindings=bindingselse:
self.bindings= [
BINDING_HTTP_REDIRECT,
BINDING_HTTP_POST,
BINDING_HTTP_ARTIFACT,
]
logger.debug("--- SSO ---")
...
defdo(self):
_cli=self.sp# Which page was accessed to get herecame_from=geturl(self.environ)
logger.debug("[sp.challenge] RelayState >> '%s'", came_from)
# If more than one idp and if none is selected, I have to do wayf
(done, response) =self._pick_idp(came_from)
# Three cases: -1 something went wrong or Discovery service used# 0 I've got an IdP to send a request to# >0 ECP in progresslogger.debug("_idp_pick returned: %s", done)
ifdone==-1:
returnresponse(self.environ, self.start_response)
elifdone>0:
self.cache.outstanding_queries[done] =came_fromreturnECPResponse(response)
else:
entity_id=response# Do the AuthnRequestresp=self.redirect_to_auth(_cli, entity_id, came_from)
returnresp(self.environ, self.start_response)
The text was updated successfully, but these errors were encountered:
login処理の中で、configにsamlを使う指示があった場合にSAMLでのログインを試みるようにしてください。
PySAML2内のサンプルでの該当コードは以下です。
The text was updated successfully, but these errors were encountered: