def __init__(self, name, sdb, cdb, authn_method, userinfo, authz, client_authn, symkey, urlmap=None, ca_certs="", keyjar=None, hostname=""): AProvider.__init__(self, name, sdb, cdb, authn_method, authz, client_authn, symkey, urlmap) self.userinfo = userinfo self.server = Server(ca_certs=ca_certs) if keyjar: self.server.keyjar = keyjar self.keyjar = self.server.keyjar self.endpoints = [] self.baseurl = "" self.cert = [] self.cert_encryption = [] if authn_method: self.cookie_func = authn_method.create_cookie else: self.cookie_func = None self.cookie_name = "pyoidc" self.seed = "" self.sso_ttl = 0 self.test_mode = False self.jwks_uri = [] self.authn_as = None self.preferred_id_type = "public" self.hostname = hostname or socket.gethostname self.register_endpoint = "%s%s" % (self.baseurl, "register")
def __init__(self, name, sdb, cdb, authn_broker, userinfo, authz, client_authn, symkey, urlmap=None, ca_certs="", keyjar=None, hostname="", template_lookup=None, verify_login_template=None): AProvider.__init__(self, name, sdb, cdb, authn_broker, authz, client_authn, symkey, urlmap) self.endp.extend([UserinfoEndpoint, RegistrationEndpoint, EndSessionEndpoint]) self.userinfo = userinfo self.server = Server(ca_certs=ca_certs) if keyjar: self.server.keyjar = keyjar self.template_lookup = template_lookup self.verify_login_template = verify_login_template self.keyjar = self.server.keyjar self.baseurl = "" self.cert = [] self.cert_encryption = [] self.cookie_name = "pyoidc" self.seed = "" self.sso_ttl = 0 self.test_mode = False self.jwks_uri = [] self.authn_as = None self.preferred_id_type = "public" self.hostname = hostname or socket.gethostname self.register_endpoint = "%s%s" % (self.baseurl, "register")
def __init__(self, name, sdb, cdb, function, userdb, urlmap=None, ca_certs="", jwt_keys=None): AProvider.__init__(self, name, sdb, cdb, function, urlmap) self.server = Server(jwt_keys=jwt_keys, ca_certs=ca_certs) self.keystore = self.server.keystore self.userdb = userdb self.function = function self.endpoints = [] self.baseurl = "" self.cert = [] self.cert_encryption = [] self.cookie_func = None self.cookie_name = "pyoidc" self.seed = "" self.cookie_ttl = 0 self.test_mode = False self.jwk = []