Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias alias alias ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad GeneratorExp NameLoad comprehension NameStore NameLoad CompareIn NameLoad NameLoad Assign NameStore Call NameLoad GeneratorExp NameLoad comprehension NameStore NameLoad CompareNotIn NameLoad NameLoad If UnaryOpNot NameLoad body Return NameLoad If NameLoad body Assign NameStore BinOpMod Str Call AttributeLoad Str attr NameLoad Raise Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore Str Raise Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore BinOpMod Str Call AttributeLoad NameLoad attr Str Raise Call AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore BinOpMod Str Call AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore BinOpMod Str Call AttributeLoad NameLoad attr Str Raise Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr NameLoad Return TupleLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Assign NameStore Str Raise Call AttributeLoad NameLoad attr NameLoad orelse If CompareGt Call NameLoad NameLoad Num body Assign NameStore Str Raise Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad CompareEq Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str body Assign NameStore SubscriptLoad NameLoad Index Num orelse If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str orelse If BoolOpAnd CompareIn Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str orelse Return NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Call NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr body Raise Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str Call AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
Provides OAuth authentication policies.
 __future__ unicode_literals django.core.exceptions ImproperlyConfigured django.conf settings rest_framework exceptions rest_framework.authentication get_authorization_header BaseAuthentication compat oauth oauth_provider oauth_provider_store compat oauth2_provider provider_now check_nonce OAuthAuthentication N/A BaseAuthentication N/A N/A 
    OAuth 1.0a authentication backend using `django-oauth-plus` and `oauth2`.
    Note: The `oauth2` package actually provides oauth1.0a support.  Urg.
          We import it from the `compat` module as `oauth`.
     N/A www_authenticate_realm api __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super OAuthAuthentication self __init__ args kwargs N/A N/A oauth None N/A N/A N/A ImproperlyConfigured The 'oauth2' package could not be imported.It is required for use with the 'OAuthAuthentication' class. N/A N/A oauth_provider None N/A N/A N/A ImproperlyConfigured The 'django-oauth-plus' package could not be imported.It is required for use with the 'OAuthAuthentication' class. N/A authenticate N/A N/A self request N/A N/A N/A 
        Returns two-tuple of (user, token) if authentication succeeds,
        or None otherwise.
         N/A N/A N/A oauth_request N/A N/A N/A oauth_provider utils get_oauth_request request N/A N/A N/A N/A oauth Error N/A err N/A N/A N/A N/A exceptions AuthenticationFailed N/A err message N/A N/A oauth_request N/A N/A None N/A oauth_params N/A N/A oauth_provider consts OAUTH_PARAMETERS_NAMES N/A found N/A any N/A param N/A param oauth_params N/A param oauth_request N/A missing N/A list N/A param N/A param oauth_params N/A param oauth_request N/A N/A found N/A N/A None N/A missing N/A N/A msg N/A Missing parameters: %s N/A N/A ,  join missing N/A N/A N/A exceptions AuthenticationFailed msg N/A N/A N/A N/A self check_nonce request oauth_request N/A N/A msg Nonce check failed N/A N/A N/A exceptions AuthenticationFailed msg N/A N/A N/A consumer_key N/A N/A oauth_request get_parameter oauth_consumer_key N/A consumer N/A N/A oauth_provider_store get_consumer request oauth_request consumer_key N/A N/A N/A N/A N/A oauth_provider store InvalidConsumerError N/A N/A msg N/A Invalid consumer token: %s N/A N/A oauth_request get_parameter oauth_consumer_key N/A N/A N/A exceptions AuthenticationFailed msg N/A N/A N/A consumer status N/A N/A oauth_provider consts ACCEPTED N/A N/A msg N/A Invalid consumer key status: %s N/A N/A consumer get_status_display N/A N/A N/A exceptions AuthenticationFailed msg N/A N/A N/A token_param N/A N/A oauth_request get_parameter oauth_token N/A token N/A N/A oauth_provider_store get_access_token request oauth_request consumer token_param N/A N/A N/A N/A N/A oauth_provider store InvalidTokenError N/A N/A msg N/A Invalid access token: %s N/A N/A oauth_request get_parameter oauth_token N/A N/A N/A exceptions AuthenticationFailed msg N/A N/A N/A N/A N/A self validate_token request consumer token N/A N/A N/A N/A oauth Error N/A err N/A N/A N/A N/A exceptions AuthenticationFailed N/A err message N/A user N/A token user N/A N/A N/A user is_active N/A N/A msg N/A User inactive or deleted: %s N/A user username N/A N/A N/A exceptions AuthenticationFailed msg N/A N/A N/A token user token N/A authenticate_header N/A N/A self request N/A N/A N/A 
        If permission is denied, return a '401 Unauthorized' response,
        with an appropraite 'WWW-Authenticate' header.
         N/A N/A OAuth realm="%s" N/A self www_authenticate_realm N/A validate_token N/A N/A self request consumer token N/A N/A N/A 
        Check the token and raise an `oauth.Error` exception if invalid.
         N/A N/A oauth_server oauth_request N/A N/A N/A oauth_provider utils initialize_server_request request N/A N/A N/A oauth_server verify_request oauth_request consumer token N/A check_nonce N/A N/A self request oauth_request N/A N/A N/A 
        Checks nonce of request, and return True if valid.
         N/A oauth_nonce N/A oauth_request N/A oauth_nonce N/A oauth_timestamp N/A oauth_request N/A oauth_timestamp N/A N/A check_nonce request oauth_request oauth_nonce oauth_timestamp N/A N/A OAuth2Authentication N/A BaseAuthentication N/A N/A 
    OAuth 2 authentication backend using `django-oauth2-provider`
     N/A www_authenticate_realm api N/A allow_query_params_token N/A settings DEBUG __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super OAuth2Authentication self __init__ args kwargs N/A N/A oauth2_provider None N/A N/A N/A ImproperlyConfigured The 'django-oauth2-provider' package could not be imported. It is required for use with the 'OAuth2Authentication' class. N/A authenticate N/A N/A self request N/A N/A N/A 
        Returns two-tuple of (user, token) if authentication succeeds,
        or None otherwise.
         N/A auth N/A N/A N/A get_authorization_header request split N/A N/A N/A len auth 1 N/A N/A msg Invalid bearer header. No credentials provided. N/A N/A N/A exceptions AuthenticationFailed msg N/A N/A N/A N/A len auth 2 N/A N/A msg Invalid bearer header. Token string should not contain spaces. N/A N/A N/A exceptions AuthenticationFailed msg N/A N/A auth N/A N/A N/A N/A auth N/A 0 lower bearer N/A N/A access_token N/A auth N/A 1 N/A N/A N/A access_token N/A request POST N/A N/A access_token N/A N/A request POST N/A access_token N/A N/A N/A N/A access_token N/A request GET N/A self allow_query_params_token N/A N/A access_token N/A N/A request GET N/A access_token N/A N/A None N/A N/A N/A self authenticate_credentials request access_token N/A authenticate_credentials N/A N/A self request access_token N/A N/A N/A 
        Authenticate the request, given the access token.
         N/A N/A N/A token N/A N/A N/A N/A N/A N/A oauth2_provider oauth2 models AccessToken objects select_related user N/A token N/A N/A token get token access_token expires__gt N/A provider_now N/A N/A N/A N/A N/A N/A N/A oauth2_provider oauth2 models AccessToken DoesNotExist N/A N/A N/A N/A exceptions AuthenticationFailed Invalid token N/A user N/A token user N/A N/A N/A user is_active N/A N/A msg N/A User inactive or deleted: %s N/A N/A user get_username N/A N/A N/A exceptions AuthenticationFailed msg N/A N/A user token N/A authenticate_header N/A N/A self request N/A N/A N/A 
        Bearer is the only finalized type currently
        Check details on the `OAuth2Authentication.authenticate` method
         N/A N/A Bearer realm="%s" N/A self www_authenticate_realm N/A N/A