Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
)
else:
self.credentials = None
if "endpoints" in config:
if isinstance(config["endpoints"],
ProtocolEndpoints):
self.endpoints = config["endpoints"]
else:
self.endpoints = ProtocolEndpoints(
config["endpoints"]
)
else:
self.endpoints = None
if "issuer" in config:
if isinstance(config["issuer"],
ProtocolEndpoint):
self.issuer = config["issuer"]
else:
self.issuer = ProtocolEndpoint(
config["issuer"]
)
else:
self.issuer = None
if "relayState" in config:
if isinstance(config["relayState"],
ProtocolRelayState):
self.relay_state = config["relayState"]
else:
self.relay_state = ProtocolRelayState(
config["relayState"]
)
else:
def __init__(self, config=None):
super().__init__(config)
if config:
if "acs" in config:
if isinstance(config["acs"],
ProtocolEndpoint):
self.acs = config["acs"]
else:
self.acs = ProtocolEndpoint(
config["acs"]
)
else:
self.acs = None
if "authorization" in config:
if isinstance(config["authorization"],
ProtocolEndpoint):
self.authorization = config["authorization"]
else:
self.authorization = ProtocolEndpoint(
config["authorization"]
)
else:
self.authorization = None
if "jwks" in config:
if isinstance(config["jwks"],
if "slo" in config:
if isinstance(config["slo"],
ProtocolEndpoint):
self.slo = config["slo"]
else:
self.slo = ProtocolEndpoint(
config["slo"]
)
else:
self.slo = None
if "sso" in config:
if isinstance(config["sso"],
ProtocolEndpoint):
self.sso = config["sso"]
else:
self.sso = ProtocolEndpoint(
config["sso"]
)
else:
self.sso = None
if "token" in config:
if isinstance(config["token"],
ProtocolEndpoint):
self.token = config["token"]
else:
self.token = ProtocolEndpoint(
config["token"]
)
else:
self.token = None
if "userInfo" in config:
if isinstance(config["userInfo"],
if "metadata" in config:
if isinstance(config["metadata"],
ProtocolEndpoint):
self.metadata = config["metadata"]
else:
self.metadata = ProtocolEndpoint(
config["metadata"]
)
else:
self.metadata = None
if "slo" in config:
if isinstance(config["slo"],
ProtocolEndpoint):
self.slo = config["slo"]
else:
self.slo = ProtocolEndpoint(
config["slo"]
)
else:
self.slo = None
if "sso" in config:
if isinstance(config["sso"],
ProtocolEndpoint):
self.sso = config["sso"]
else:
self.sso = ProtocolEndpoint(
config["sso"]
)
else:
self.sso = None
if "token" in config:
if isinstance(config["token"],
if "acs" in config:
if isinstance(config["acs"],
ProtocolEndpoint):
self.acs = config["acs"]
else:
self.acs = ProtocolEndpoint(
config["acs"]
)
else:
self.acs = None
if "authorization" in config:
if isinstance(config["authorization"],
ProtocolEndpoint):
self.authorization = config["authorization"]
else:
self.authorization = ProtocolEndpoint(
config["authorization"]
)
else:
self.authorization = None
if "jwks" in config:
if isinstance(config["jwks"],
ProtocolEndpoint):
self.jwks = config["jwks"]
else:
self.jwks = ProtocolEndpoint(
config["jwks"]
)
else:
self.jwks = None
if "metadata" in config:
if isinstance(config["metadata"],
if "jwks" in config:
if isinstance(config["jwks"],
ProtocolEndpoint):
self.jwks = config["jwks"]
else:
self.jwks = ProtocolEndpoint(
config["jwks"]
)
else:
self.jwks = None
if "metadata" in config:
if isinstance(config["metadata"],
ProtocolEndpoint):
self.metadata = config["metadata"]
else:
self.metadata = ProtocolEndpoint(
config["metadata"]
)
else:
self.metadata = None
if "slo" in config:
if isinstance(config["slo"],
ProtocolEndpoint):
self.slo = config["slo"]
else:
self.slo = ProtocolEndpoint(
config["slo"]
)
else:
self.slo = None
if "sso" in config:
if isinstance(config["sso"],
)
else:
self.jwks = None
if "metadata" in config:
if isinstance(config["metadata"],
ProtocolEndpoint):
self.metadata = config["metadata"]
else:
self.metadata = ProtocolEndpoint(
config["metadata"]
)
else:
self.metadata = None
if "slo" in config:
if isinstance(config["slo"],
ProtocolEndpoint):
self.slo = config["slo"]
else:
self.slo = ProtocolEndpoint(
config["slo"]
)
else:
self.slo = None
if "sso" in config:
if isinstance(config["sso"],
ProtocolEndpoint):
self.sso = config["sso"]
else:
self.sso = ProtocolEndpoint(
config["sso"]
)
else:
if "endpoints" in config:
if isinstance(config["endpoints"],
ProtocolEndpoints):
self.endpoints = config["endpoints"]
else:
self.endpoints = ProtocolEndpoints(
config["endpoints"]
)
else:
self.endpoints = None
if "issuer" in config:
if isinstance(config["issuer"],
ProtocolEndpoint):
self.issuer = config["issuer"]
else:
self.issuer = ProtocolEndpoint(
config["issuer"]
)
else:
self.issuer = None
if "relayState" in config:
if isinstance(config["relayState"],
ProtocolRelayState):
self.relay_state = config["relayState"]
else:
self.relay_state = ProtocolRelayState(
config["relayState"]
)
else:
self.relay_state = None
self.scopes = config["scopes"]\
if "scopes" in config else None
if "sso" in config:
if isinstance(config["sso"],
ProtocolEndpoint):
self.sso = config["sso"]
else:
self.sso = ProtocolEndpoint(
config["sso"]
)
else:
self.sso = None
if "token" in config:
if isinstance(config["token"],
ProtocolEndpoint):
self.token = config["token"]
else:
self.token = ProtocolEndpoint(
config["token"]
)
else:
self.token = None
if "userInfo" in config:
if isinstance(config["userInfo"],
ProtocolEndpoint):
self.user_info = config["userInfo"]
else:
self.user_info = ProtocolEndpoint(
config["userInfo"]
)
else:
self.user_info = None
else:
self.acs = None
if "authorization" in config:
if isinstance(config["authorization"],
ProtocolEndpoint):
self.authorization = config["authorization"]
else:
self.authorization = ProtocolEndpoint(
config["authorization"]
)
else:
self.authorization = None
if "jwks" in config:
if isinstance(config["jwks"],
ProtocolEndpoint):
self.jwks = config["jwks"]
else:
self.jwks = ProtocolEndpoint(
config["jwks"]
)
else:
self.jwks = None
if "metadata" in config:
if isinstance(config["metadata"],
ProtocolEndpoint):
self.metadata = config["metadata"]
else:
self.metadata = ProtocolEndpoint(
config["metadata"]
)
else:
self.metadata = None
if "slo" in config:
if isinstance(config["slo"],