Module Import alias ImportFrom alias alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Return Call NameLoad NameLoad NameLoad If NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Str AugAssignAdd NameStore Str Assign NameStore Call AttributeLoad Str attr keyword Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call NameLoad NameLoad keyword ListLoad TupleLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad Str attr keyword Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Return Call NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Call NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad keyword NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore ListLoad Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr For NameStore NameLoad body Assign SubscriptStore NameLoad Index Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Num NameLoad body Assign NameStore Call NameLoad Return Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Num AttributeLoad NameLoad attr keyword ListLoad TupleLoad Str Str orelse Return Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad TupleLoad Str NameLoad Expr Call NameLoad Str NameLoad Return ListLoad NameLoad orelse Assign NameStore Call NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Return Call NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Str Assign NameStore Call NameLoad keyword Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad NameLoad Assign NameStore Dict Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise NameLoad Pass Assign NameStore Call NameLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Str With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str TryExcept body Print Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A argparse functools wraps partial N/A json N/A mimetypes N/A os N/A urllib N/A urlparse N/A errno N/A cherrypy cherrypy wsgiserver cherrypy.wsgiserver ssl_pyopenssl cherrypy.wsgiserver.wsgiserver2 WSGIPathInfoDispatcher jinja2.environment Environment jinja2.loaders FileSystemLoader N/A yaml oic.oauth2 rndstr oic.oic.provider Provider AuthorizationEndpoint TokenEndpoint UserinfoEndpoint RegistrationEndpoint EndSessionEndpoint oic.utils.authn.authn_context AuthnBroker oic.utils.authn.client verify_client oic.utils.authz AuthzHandling oic.utils.http_util Redirect SeeOther Response BadRequest get_or_post get_post NotFound oic.utils.keyio keyjar_init oic.utils.sdb SessionDB oic.utils.userinfo UserInfo oic.utils.webfinger OIC_ISSUER WebFinger provider.authn make_cls_from_name VerifierMiddleware N/A N/A verifier N/A N/A N/A Common wrapper for the authentication modules.
        * Parses the request before passing it on to the authentication module.
        * Sets 'pyoidc' cookie if authentication succeeds.
        * Redirects the user to complete the authentication.
        * Allows the user to retry authentication if it fails.
    :param verifier: authentication module
     wrapper N/A N/A environ start_response N/A N/A N/A data N/A get_post environ N/A kwargs N/A dict N/A N/A urlparse parse_qsl data N/A N/A kwargs N/A state N/A N/A json loads N/A N/A urllib unquote N/A kwargs N/A state N/A N/A val completed N/A N/A verifier verify kwargs N/A N/A completed N/A N/A N/A val environ start_response N/A val N/A N/A N/A set_cookie cookie_value N/A N/A verifier create_cookie val auth N/A cookie_value ; path=/ N/A url N/A N/A {base_url}?{query_string} format base_url /authorization query_string N/A N/A kwargs N/A state N/A query N/A response N/A SeeOther url headers N/A N/A set_cookie cookie_value N/A N/A response environ start_response N/A N/A url N/A N/A {base_url}?{query_string} format base_url /authorization query_string N/A N/A kwargs N/A state N/A query N/A response N/A SeeOther url N/A N/A response environ start_response N/A N/A wraps N/A verifier verify N/A wrapper N/A pyoidcMiddleware N/A N/A func N/A N/A N/A Common wrapper for the underlying pyoidc library functions.
    Reads GET params and POST data before passing it on the library and
    converts the response from oic.utils.http_util to wsgi.
    :param func: underlying library function
     wrapper N/A N/A environ start_response N/A N/A N/A data N/A get_or_post environ N/A cookies N/A N/A environ get HTTP_COOKIE N/A resp N/A func request data cookie cookies N/A N/A resp environ start_response N/A N/A wrapper N/A resp2flask N/A N/A resp N/A N/A N/A Convert an oic.utils.http_util instance to Flask. N/A N/A N/A isinstance resp Redirect N/A isinstance resp SeeOther N/A N/A code N/A int N/A N/A N/A N/A resp status split N/A 0 N/A N/A N/A cherrypy HTTPRedirect N/A resp message code N/A N/A N/A resp message N/A resp status N/A resp headers N/A setup_authentication_methods N/A N/A authn_config template_env N/A N/A N/A Add all authentication methods specified in the configuration. N/A routing N/A N/A ac N/A AuthnBroker N/A authn_method authn_config N/A N/A cls N/A make_cls_from_name N/A authn_method N/A class N/A instance N/A cls template_env template_env N/A authn_method N/A kwargs N/A N/A N/A ac add N/A authn_method N/A acr instance N/A N/A routing N/A N/A instance url_endpoint N/A VerifierMiddleware instance N/A N/A ac routing N/A setup_endpoints N/A N/A provider N/A N/A N/A Setup the OpenID Connect Provider endpoints. N/A app_routing N/A N/A endpoints N/A N/A AuthorizationEndpoint N/A pyoidcMiddleware N/A provider authorization_endpoint N/A TokenEndpoint N/A pyoidcMiddleware N/A provider token_endpoint N/A UserinfoEndpoint N/A pyoidcMiddleware N/A provider userinfo_endpoint N/A RegistrationEndpoint N/A pyoidcMiddleware N/A provider registration_endpoint N/A EndSessionEndpoint N/A pyoidcMiddleware N/A provider endsession_endpoint N/A ep endpoints N/A N/A N/A app_routing N/A N/A N/A /{} format N/A ep etype ep N/A app_routing N/A _webfinger N/A N/A provider request N/A kwargs N/A N/A Handle webfinger requests. N/A params N/A N/A urlparse parse_qs request N/A N/A N/A N/A params N/A rel N/A 0 OIC_ISSUER N/A N/A wf N/A WebFinger N/A N/A Response N/A N/A wf response N/A N/A params N/A resource N/A 0 N/A provider baseurl headers N/A N/A Content-Type application/jrd+json N/A N/A N/A BadRequest Incorrect webfinger. N/A make_static_handler N/A N/A static_dir N/A N/A static N/A N/A environ start_response N/A N/A N/A path N/A environ N/A PATH_INFO N/A full_path N/A N/A N/A os path join static_dir N/A N/A N/A N/A N/A os path normpath path lstrip / N/A N/A N/A N/A os path exists full_path N/A N/A N/A open full_path rb f N/A N/A content N/A N/A f read N/A N/A content_type encoding N/A N/A mimetypes guess_type full_path N/A headers N/A N/A Content-Type content_type N/A N/A start_response 200 OK headers N/A N/A content N/A N/A response N/A NotFound N/A N/A File '{}' not found. format N/A environ N/A PATH_INFO N/A N/A response environ start_response N/A N/A static N/A main N/A N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser description Example OIDC Provider. N/A N/A N/A parser add_argument -p --port default 80 type int N/A N/A N/A parser add_argument -b --base default https://localhost type str N/A N/A N/A parser add_argument -d --debug action store_true N/A N/A N/A parser add_argument settings N/A args N/A N/A parser parse_args N/A N/A open N/A args settings r f N/A N/A settings N/A N/A yaml load f N/A issuer N/A N/A N/A args base rstrip / N/A template_dirs N/A N/A N/A settings N/A server get template_dirs templates N/A jinja_env N/A Environment loader N/A FileSystemLoader template_dirs N/A N/A authn_broker auth_routing N/A setup_authentication_methods N/A settings N/A authn jinja_env N/A userinfo_conf N/A settings N/A userinfo N/A cls N/A make_cls_from_name N/A userinfo_conf N/A class N/A i N/A cls N/A userinfo_conf N/A kwargs N/A userinfo N/A UserInfo i N/A client_db N/A N/A provider N/A Provider issuer N/A SessionDB issuer client_db authn_broker userinfo N/A AuthzHandling verify_client None N/A N/A provider baseurl issuer N/A N/A provider symkey N/A rndstr 16 N/A path N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ static N/A N/A N/A N/A N/A os makedirs path N/A N/A N/A OSError N/A e N/A N/A N/A N/A e errno N/A errno EEXIST N/A N/A e N/A N/A jwks N/A keyjar_init provider N/A N/A settings N/A provider N/A keys N/A name jwks.json N/A N/A open N/A N/A N/A os path join path name w f N/A N/A N/A N/A f write N/A N/A json dumps jwks N/A N/A N/A N/A provider jwks_uri append N/A N/A {}/static/{} format N/A provider baseurl name N/A app_routing N/A setup_endpoints provider N/A N/A app_routing N/A /.well-known/openid-configuration N/A pyoidcMiddleware N/A provider providerinfo_endpoint N/A N/A app_routing N/A /.well-known/webfinger N/A pyoidcMiddleware N/A partial _webfinger provider N/A routing N/A dict N/A N/A N/A auth_routing items N/A N/A app_routing items N/A N/A routing N/A /static N/A make_static_handler path N/A dispatcher N/A WSGIPathInfoDispatcher routing N/A server N/A N/A wsgiserver CherryPyWSGIServer N/A 0.0.0.0 N/A args port dispatcher N/A N/A N/A N/A provider baseurl startswith https:// N/A N/A N/A server ssl_adapter N/A N/A ssl_pyopenssl pyOpenSSLAdapter N/A N/A settings N/A server N/A cert N/A N/A settings N/A server N/A key N/A N/A settings N/A server N/A cert_chain N/A N/A N/A N/A N/A Server started: {} format issuer N/A N/A N/A server start N/A N/A N/A KeyboardInterrupt N/A N/A N/A N/A server stop N/A N/A N/A __name__ __main__ N/A N/A N/A main