Module Expr Str Assign NameStore ListLoad Str Str Str Str Str Str ImportFrom alias Import alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad BoolOpOr AttributeLoad NameLoad attr CompareIsNot AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Call AttributeLoad Str attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareEq NameLoad Dict body Return NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr ListLoad Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body For NameStore Call AttributeLoad NameLoad attr Str body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad If NameLoad body TryExcept body Assign AttributeStore NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list Assign AttributeStore NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd NameLoad CompareNotEq NameLoad Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body If NameLoad body Raise Call NameLoad Str orelse Assign AttributeStore NameLoad attr NameLoad orelse If CompareLtELt Num NameLoad Num body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse If NameLoad body Raise Call NameLoad Str decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Dict Str Str orelse Assign NameStore Dict Str Call AttributeLoad Str attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body If CompareNotIn AttributeLoad NameLoad attr Call NameLoad Num Num body Raise Call NameLoad Str Assign SubscriptStore NameLoad Index Str Call NameLoad AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list Assign AttributeStore NameLoad attr NameLoad
N/A N/A An implementation of the OpenID Provider Authentication Policy
Extension 1.0

@see: http://openid.net/developers/specs/

@since: 2.1.0
 N/A __all__ N/A Request Response ns_uri AUTH_PHISHING_RESISTANT AUTH_MULTI_FACTOR AUTH_MULTI_FACTOR_PHYSICAL openid.extension Extension N/A re N/A ns_uri http://specs.openid.net/extensions/pape/1.0 N/A AUTH_MULTI_FACTOR_PHYSICAL http://schemas.openid.net/pape/policies/2007/06/multi-factor-physical N/A AUTH_MULTI_FACTOR http://schemas.openid.net/pape/policies/2007/06/multi-factor N/A AUTH_PHISHING_RESISTANT http://schemas.openid.net/pape/policies/2007/06/phishing-resistant N/A TIME_VALIDATOR N/A N/A re compile ^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$ Request N/A Extension N/A N/A A Provider Authentication Policy request, sent from a relying
    party to a provider

    @ivar preferred_auth_policies: The authentication policies that
        the relying party prefers
    @type preferred_auth_policies: [str]

    @ivar max_auth_age: The maximum time, in seconds, that the relying
        party wants to allow to have elapsed before the user must
        re-authenticate
    @type max_auth_age: int or NoneType
     N/A ns_alias pape __init__ N/A N/A self preferred_auth_policies max_auth_age N/A None None N/A N/A N/A N/A N/A super Request self __init__ self N/A N/A preferred_auth_policies N/A N/A preferred_auth_policies N/A N/A N/A self preferred_auth_policies preferred_auth_policies N/A N/A self max_auth_age max_auth_age N/A __nonzero__ N/A N/A self N/A N/A N/A N/A bool N/A N/A self preferred_auth_policies N/A N/A self max_auth_age None N/A addPolicyURI N/A N/A self policy_uri N/A N/A N/A Add an acceptable authentication policy URI to this request

        This method is intended to be used by the relying party to add
        acceptable authentication types to the request.

        @param policy_uri: The identifier for the preferred type of
            authentication.
        @see: http://openid.net/specs/openid-provider-authentication-policy-extension-1_0-01.html#auth_policies
         N/A N/A policy_uri N/A self preferred_auth_policies N/A N/A N/A N/A N/A self preferred_auth_policies append policy_uri N/A getExtensionArgs N/A N/A self N/A N/A N/A @see: C{L{Extension.getExtensionArgs}}
         N/A ns_args N/A preferred_auth_policies N/A N/A join N/A self preferred_auth_policies N/A N/A N/A self max_auth_age None N/A N/A N/A ns_args N/A max_auth_age N/A str N/A self max_auth_age N/A ns_args N/A fromOpenIDRequest N/A N/A cls request N/A N/A N/A Instantiate a Request object from the arguments in a
        C{checkid_*} OpenID message
         N/A self N/A cls N/A args N/A N/A N/A request message getArgs N/A self ns_uri N/A N/A args N/A N/A N/A None N/A N/A N/A self parseExtensionArgs args N/A self N/A N/A fromOpenIDRequest N/A classmethod fromOpenIDRequest parseExtensionArgs N/A N/A self args N/A N/A N/A Set the state of this request to be that expressed in these
        PAPE arguments

        @param args: The PAPE arguments without a namespace

        @rtype: None

        @raises ValueError: When the max_auth_age is not parseable as
            an integer
         N/A N/A self preferred_auth_policies N/A N/A policies_str N/A N/A args get preferred_auth_policies N/A policies_str N/A N/A uri N/A N/A policies_str split N/A N/A N/A uri N/A self preferred_auth_policies N/A N/A N/A N/A N/A self preferred_auth_policies append uri N/A max_auth_age_str N/A N/A args get max_auth_age N/A N/A self max_auth_age None N/A max_auth_age_str N/A N/A N/A N/A N/A self max_auth_age N/A int max_auth_age_str N/A N/A N/A ValueError N/A N/A N/A preferredTypes N/A N/A self supported_types N/A N/A N/A Given a list of authentication policy URIs that a provider
        supports, this method returns the subsequence of those types
        that are preferred by the relying party.

        @param supported_types: A sequence of authentication policy
            type URIs that are supported by a provider

        @returns: The sub-sequence of the supported types that are
            preferred by the relying party. This list will be ordered
            in the order that the types appear in the supported_types
            sequence, and may be empty if the provider does not prefer
            any of the supported authentication types.

        @returntype: [str]
         N/A N/A filter N/A N/A self preferred_auth_policies __contains__ supported_types N/A N/A N/A N/A Request ns_uri ns_uri Response N/A Extension N/A N/A A Provider Authentication Policy response, sent from a provider
    to a relying party
     N/A ns_alias pape __init__ N/A N/A self auth_policies auth_time nist_auth_level N/A None None None N/A N/A N/A N/A N/A super Response self __init__ self N/A auth_policies N/A N/A N/A self auth_policies auth_policies N/A N/A N/A self auth_policies N/A N/A N/A self auth_time auth_time N/A N/A self nist_auth_level nist_auth_level N/A addPolicyURI N/A N/A self policy_uri N/A N/A N/A Add a authentication policy to this response

        This method is intended to be used by the provider to add a
        policy that the provider conformed to when authenticating the user.

        @param policy_uri: The identifier for the preferred type of
            authentication.
        @see: http://openid.net/specs/openid-provider-authentication-policy-extension-1_0-01.html#auth_policies
         N/A N/A policy_uri N/A self auth_policies N/A N/A N/A N/A N/A self auth_policies append policy_uri N/A fromSuccessResponse N/A N/A cls success_response N/A N/A N/A Create a C{L{Response}} object from a successful OpenID
        library response
        (C{L{openid.consumer.consumer.SuccessResponse}}) response
        message

        @param success_response: A SuccessResponse from consumer.complete()
        @type success_response: C{L{openid.consumer.consumer.SuccessResponse}}

        @rtype: Response or None
        @returns: A provider authentication policy response from the
            data that was supplied with the C{id_res} response or None
            if the provider sent no signed PAPE response arguments.
         N/A self N/A cls N/A args N/A N/A success_response getSignedNS N/A self ns_uri N/A N/A args None N/A N/A N/A N/A self parseExtensionArgs args N/A self N/A N/A None N/A parseExtensionArgs N/A N/A self args strict N/A False N/A N/A Parse the provider authentication policy arguments into the
        internal state of this object

        @param args: unqualified provider authentication policy
            arguments

        @param strict: Whether to raise an exception when bad data is
            encountered

        @returns: None. The data is parsed into the internal fields of
            this object.
         N/A policies_str N/A N/A args get auth_policies N/A N/A policies_str N/A policies_str none N/A N/A N/A self auth_policies N/A N/A policies_str split N/A nist_level_str N/A N/A args get nist_auth_level N/A nist_level_str N/A N/A N/A N/A nist_level N/A int nist_level_str N/A N/A N/A ValueError N/A N/A strict N/A N/A N/A ValueError nist_auth_level must be an integer between zero and four, inclusive N/A N/A N/A self nist_auth_level None N/A N/A N/A 0 nist_level 5 N/A N/A N/A self nist_auth_level nist_level N/A auth_time N/A N/A args get auth_time N/A auth_time N/A N/A N/A N/A TIME_VALIDATOR match auth_time N/A N/A N/A self auth_time auth_time N/A N/A strict N/A N/A N/A ValueError auth_time must be in RFC3339 format N/A N/A fromSuccessResponse N/A classmethod fromSuccessResponse getExtensionArgs N/A N/A self N/A N/A N/A @see: C{L{Extension.getExtensionArgs}}
         N/A N/A N/A len N/A self auth_policies 0 N/A N/A ns_args N/A auth_policies none N/A N/A ns_args N/A auth_policies N/A N/A join N/A self auth_policies N/A N/A N/A self nist_auth_level None N/A N/A N/A N/A self nist_auth_level N/A range 0 5 N/A N/A N/A ValueError nist_auth_level must be an integer between zero and four, inclusive N/A N/A ns_args N/A nist_auth_level N/A str N/A self nist_auth_level N/A N/A N/A self auth_time None N/A N/A N/A N/A N/A TIME_VALIDATOR match N/A self auth_time N/A N/A N/A ValueError auth_time must be in RFC3339 format N/A N/A ns_args N/A auth_time N/A self auth_time N/A ns_args N/A N/A N/A N/A Response ns_uri ns_uri