Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Raise NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Return NameLoad Assign NameStore Num For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body AugAssignBitOr NameStore BinOpBitXor NameLoad NameLoad Return CompareEq NameLoad Num decorator_list FunctionDef arguments args NameParam defaults NameLoad body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr ListComp TupleLoad NameLoad NameLoad comprehension NameStore NameLoad orelse Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call NameLoad NameLoad If AttributeLoad NameLoad attr body Raise Call NameLoad Str For TupleStore NameStore NameStore Call AttributeLoad Call NameLoad NameLoad attr body If CompareIn NameLoad NameLoad body If Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad If AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr body If CompareIn NameLoad NameLoad body If Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str kwarg body Expr Str If NameLoad body Assign NameStore ListLoad NameLoad orelse Assign NameStore ListLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assert Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad orelse Raise Call NameLoad Str TryExcept body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Num SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr ListLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Dict AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad keyword ListLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body If CompareIs NameLoad NameLoad body Return NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad TryExcept body Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Str If CompareEq NameLoad NameLoad body Return Dict Str NameLoad handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Return NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Str kwarg body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Str kwarg body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str orelse If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Return SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Pass decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpMod AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad decorator_list decorator_list
N/A N/A logging urllib urlencode urlparse parse_qs urlparse urlsplit N/A time N/A ldap saml2 SAMLError saml2.aes AESCipher saml2.httputil Response saml2.httputil make_cookie saml2.httputil Redirect saml2.httputil Unauthorized saml2.httputil parse_cookie N/A __author__ rolandh N/A logger N/A N/A logging getLogger __name__ AuthnFailure N/A SAMLError N/A N/A N/A EncodeError N/A SAMLError N/A N/A N/A UserAuthnMethod N/A object N/A __init__ N/A N/A self srv N/A N/A N/A N/A self srv srv N/A __call__ N/A N/A self N/A args kwargs N/A N/A NotImplemented N/A authenticated_as N/A N/A self N/A kwargs N/A N/A NotImplemented N/A verify N/A N/A self N/A kwargs N/A N/A NotImplemented N/A N/A is_equal N/A N/A a b N/A N/A N/A N/A N/A len a N/A len b N/A N/A False N/A result 0 N/A N/A x y N/A zip a b N/A N/A result N/A x y N/A N/A result 0 N/A url_encode_params N/A N/A params N/A None N/A N/A N/A N/A isinstance params dict N/A N/A N/A EncodeError You must pass in a dictionary! N/A params_list N/A N/A N/A k v N/A N/A params items N/A N/A N/A isinstance v list N/A N/A N/A N/A params_list extend N/A N/A k x N/A x v N/A N/A N/A N/A params_list append N/A k v N/A N/A urlencode params_list N/A create_return_url N/A N/A base query N/A kwargs N/A N/A 
    Add a query string plus extra parameters to a base URL which may contain
    a query part already.

    :param base: redirect_uri may contain a query part, no fragment allowed.
    :param query: Old query part as a string
    :param kwargs: extra query parameters
    :return:
     N/A part N/A urlsplit base N/A N/A part fragment N/A N/A N/A ValueError Base URL contained parts it shouldn't N/A N/A key values N/A N/A N/A parse_qs query items N/A N/A N/A key kwargs N/A N/A N/A isinstance N/A kwargs N/A key basestring N/A N/A N/A kwargs N/A key N/A N/A kwargs N/A key N/A N/A N/A N/A kwargs N/A key extend values N/A N/A N/A kwargs N/A key values N/A N/A part query N/A N/A N/A key values N/A N/A N/A parse_qs N/A part query items N/A N/A N/A key kwargs N/A N/A N/A isinstance N/A kwargs N/A key basestring N/A N/A N/A kwargs N/A key N/A N/A kwargs N/A key N/A N/A N/A N/A kwargs N/A key extend values N/A N/A N/A kwargs N/A key values N/A _pre N/A N/A N/A base split ? N/A 0 N/A N/A _pre base N/A N/A N/A logger debug N/A kwargs: %s kwargs N/A N/A %s?%s N/A _pre N/A url_encode_params kwargs N/A UsernamePasswordMako N/A UserAuthnMethod N/A N/A Do user authentication using the normal username password form
    using Mako as template system N/A cookie_name userpassmako __init__ N/A N/A self srv mako_template template_lookup pwd return_to N/A N/A N/A 
        :param srv: The server instance
        :param mako_template: Which Mako template to use
        :param pwd: Username/password dictionary like database
        :param return_to: Where to send the user after authentication
        :return:
         N/A N/A N/A UserAuthnMethod __init__ self srv N/A N/A self mako_template mako_template N/A N/A self template_lookup template_lookup N/A N/A self passwd pwd N/A N/A self return_to return_to N/A N/A self active N/A N/A N/A self query_param upm_answer N/A N/A self aes N/A AESCipher N/A N/A self srv symkey N/A srv iv N/A __call__ N/A N/A self cookie policy_url logo_url query N/A None None None kwargs N/A N/A 
        Put up the login form
         N/A cookie N/A N/A headers N/A cookie N/A N/A headers N/A N/A resp N/A Response headers headers N/A argv N/A login password action policy_url logo_url query verify policy_url logo_url query N/A N/A N/A logger info N/A do_authentication argv: %s argv N/A mte N/A N/A N/A self template_lookup get_template N/A self mako_template N/A N/A resp message N/A N/A mte render argv N/A resp N/A _verify N/A N/A self pwd user N/A N/A N/A N/A is_equal pwd N/A N/A self passwd N/A user N/A verify N/A N/A self request N/A kwargs N/A N/A 
        Verifies that the given username and password was correct
        :param request: Either the query part of a URL a urlencoded
            body of a HTTP message or a parse such.
        :param kwargs: Catch whatever else is sent.
        :return: redirect back to where ever the base applications
            wants the user after authentication.
         N/A N/A isinstance request basestring N/A N/A _dict N/A parse_qs request N/A N/A N/A isinstance request dict N/A N/A _dict request N/A N/A N/A ValueError Wrong type of input N/A N/A N/A N/A N/A self _verify N/A N/A _dict N/A password N/A 0 N/A N/A _dict N/A login N/A 0 N/A timestamp N/A str N/A int N/A N/A time mktime N/A N/A time gmtime N/A info N/A N/A N/A self aes encrypt N/A N/A :: join N/A N/A N/A _dict N/A login N/A 0 timestamp N/A N/A N/A self active N/A info timestamp N/A cookie N/A make_cookie N/A self cookie_name info N/A N/A self srv seed N/A return_to N/A create_return_url N/A self return_to N/A N/A _dict N/A query N/A 0 N/A N/A self query_param true N/A resp N/A Redirect return_to headers N/A cookie N/A N/A N/A N/A AssertionError KeyError N/A N/A resp N/A Unauthorized Unknown user or wrong password N/A resp N/A authenticated_as N/A N/A self cookie N/A None kwargs N/A N/A N/A cookie None N/A N/A None N/A N/A N/A N/A logger debug N/A kwargs: %s kwargs N/A N/A N/A N/A info timestamp N/A parse_cookie N/A self cookie_name N/A N/A self srv seed cookie N/A N/A N/A N/A self active N/A info timestamp N/A N/A N/A uid _ts N/A N/A N/A N/A N/A self aes decrypt info split :: N/A N/A timestamp _ts N/A N/A N/A uid uid N/A N/A N/A Exception N/A N/A N/A None N/A done N/A N/A self areq N/A N/A N/A N/A N/A _ N/A areq N/A N/A self query_param N/A False N/A N/A N/A KeyError N/A N/A True N/A N/A SocialService N/A UserAuthnMethod N/A __init__ N/A N/A self social N/A N/A N/A N/A N/A UserAuthnMethod __init__ self None N/A N/A self social social N/A __call__ N/A N/A self server_env cookie sid query N/A None kwargs N/A N/A N/A N/A N/A self social begin server_env cookie sid query N/A callback N/A N/A self server_env cookie sid query N/A None kwargs N/A N/A N/A N/A N/A self social callback server_env cookie sid query kwargs N/A N/A AuthnMethodChooser N/A object N/A __init__ N/A N/A self methods N/A None N/A N/A N/A self methods methods N/A __call__ N/A N/A self N/A kwargs N/A N/A N/A N/A self methods N/A N/A N/A SAMLError No authentication methods defined N/A N/A N/A N/A len N/A self methods 1 N/A N/A N/A N/A self methods N/A 0 N/A N/A N/A N/A LDAPAuthn N/A UsernamePasswordMako N/A __init__ N/A N/A self srv ldapsrv return_to dn_pattern mako_template template_lookup N/A N/A N/A 
        :param srv: The server instance
        :param ldapsrv: Which LDAP server to us
        :param return_to: Where to send the user after authentication
        :return:
         N/A N/A N/A UsernamePasswordMako __init__ self srv mako_template template_lookup None return_to N/A N/A self ldap N/A N/A ldap initialize ldapsrv N/A N/A N/A self ldap protocol_version 3 N/A N/A N/A N/A self ldap set_option N/A ldap OPT_REFERRALS 0 N/A N/A self dn_pattern dn_pattern N/A _verify N/A N/A self pwd user N/A N/A N/A 
        Verifies the username and password agains a LDAP server
        :param pwd: The password
        :param user: The username
        :return: AssertionError if the LDAP verification failed.
         N/A _dn N/A N/A self dn_pattern user N/A N/A N/A N/A N/A N/A self ldap simple_bind_s _dn pwd N/A N/A N/A Exception N/A N/A N/A AssertionError N/A N/A