def __init__(self, name, sdb, cdb, userinfo, client_authn, urlmap=None, ca_certs="", keyjar=None, hostname="", dist_claims_mode=None): Provider.__init__(self, name, sdb, cdb, None, userinfo, None, client_authn, "", urlmap, ca_certs, keyjar, hostname) if keyjar is None: keyjar = KeyJar(ca_certs) for cid, _dic in cdb.items(): try: keyjar.add_symmetric(cid, _dic["client_secret"], ["sig", "ver"]) except KeyError: pass self.srvmethod = OICCServer(keyjar=keyjar) self.dist_claims_mode = dist_claims_mode self.info_store = {} self.claims_userinfo_endpoint = ""
def __init__( self, name, sdb, cdb, userinfo, client_authn, urlmap=None, ca_certs="", keyjar=None, hostname="", dist_claims_mode=None, ): Provider.__init__( self, name, sdb, cdb, None, userinfo, None, client_authn, "", urlmap, ca_certs, keyjar, hostname ) if keyjar is None: keyjar = KeyJar(ca_certs) for cid, _dic in cdb.items(): try: keyjar.add_symmetric(cid, _dic["client_secret"], ["sig", "ver"]) except KeyError: pass self.srvmethod = OICCServer(keyjar=keyjar) self.dist_claims_mode = dist_claims_mode self.info_store = {} self.claims_userinfo_endpoint = ""
def __init__(self, name, sdb, cdb, authn_broker, userinfo, authz, client_authn, symkey, trusted_domains, verify_signer_ssl=True, **kwarg): Provider.__init__(self, name, sdb, cdb, authn_broker, userinfo, authz, client_authn, symkey, **kwarg) self.trusted_domains = trusted_domains self.verify_signer_ssl = verify_signer_ssl
def __init__(self, name, sdb, cdb, function, userdb, urlmap=None, debug=0, ca_certs="", jwt_keys=None): Provider.__init__(self, name, sdb, cdb, function, userdb, urlmap, ca_certs, jwt_keys) self.test_mode = True self.trace_log = {} self.sessions = [] self.max_sessions = 100
def __init__( self, name, sdb, cdb, userinfo, client_authn, urlmap=None, keyjar=None, hostname="", dist_claims_mode=None, verify_ssl=None, settings=None, ): self.settings = settings or OicProviderSettings() if verify_ssl is not None: warnings.warn( "`verify_ssl` is deprecated, please use `settings` instead if you need to set a non-default value.", DeprecationWarning, stacklevel=2, ) self.settings.verify_ssl = verify_ssl Provider.__init__( self, name, sdb, cdb, None, userinfo, None, client_authn, None, urlmap, keyjar, hostname, settings=self.settings, ) if keyjar is None: keyjar = KeyJar(verify_ssl=verify_ssl) for cid, _dic in cdb.items(): try: keyjar.add_symmetric(cid, _dic["client_secret"], ["sig", "ver"]) except KeyError: pass self.srvmethod = OICCServer(keyjar=keyjar) self.dist_claims_mode = dist_claims_mode self.info_store = {} # type: Dict[str, Any] self.claims_userinfo_endpoint = ""
def __init__(self, name, sdb, cdb, function, userdb, urlmap=None, debug=0, ca_certs="", jwt_keys=None): Provider.__init__(self, name, sdb, cdb, function, userdb, urlmap, ca_certs, jwt_keys) if jwt_keys is None: jwt_keys = [] for cid, _dic in cdb.items(): jwt_keys.append([_dic["client_secret"], "hmac", "sig", cid]) jwt_keys.append([_dic["client_secret"], "hmac", "ver", cid]) self.srvmethod = OICCServer(jwt_keys=jwt_keys) self.keystore = self.srvmethod.keystore self.claims_mode = "aggregate" self.info_store = {} self.claims_userinfo_endpoint = ""
def __init__( self, name, sdb, cdb, userinfo, client_authn, urlmap=None, keyjar=None, hostname="", dist_claims_mode=None, verify_ssl=True, ): Provider.__init__( self, name, sdb, cdb, None, userinfo, None, client_authn, None, urlmap, keyjar, hostname, verify_ssl=verify_ssl, ) if keyjar is None: keyjar = KeyJar(verify_ssl=verify_ssl) for cid, _dic in cdb.items(): try: keyjar.add_symmetric(cid, _dic["client_secret"], ["sig", "ver"]) except KeyError: pass self.srvmethod = OICCServer(keyjar=keyjar) self.dist_claims_mode = dist_claims_mode self.info_store = {} # type: Dict[str, Any] self.claims_userinfo_endpoint = ""
def __init__(self, name, sdb, cdb, authn_broker, userinfo, authz, client_authn, symkey, urlmap=None, keyjar=None, hostname="", configuration=None, ca_certs="", template_lookup=None, verify_login_template=None, base_url=""): OIDCProvider.__init__(self, name, sdb, cdb, authn_broker, userinfo, authz, client_authn, symkey, urlmap, ca_certs, keyjar, hostname, template_lookup, verify_login_template) UmaAS.__init__(self, configuration, baseurl=base_url) if keyjar: self.keyjar = keyjar else: self.keyjar = KeyJar() self.hostname = hostname or socket.gethostname #self.jwks_uri = [] self.endp = UmaAS.endp[:] self.endp.extend(OIDCProvider.endp)
def __init__(self, name, sdb, cdb, function, userdb, urlmap=None, debug=0, ca_certs="", jwt_keys=None): Provider.__init__(self, name, sdb, cdb, function, userdb, urlmap, ca_certs, jwt_keys)