Module Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias Assign NameStore TupleLoad Str Str Str ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults kwarg body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str If UnaryOpNot Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIn NameLoad ListLoad Str Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad If CompareNotEq NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return Call NameLoad BoolOpOr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list decorator_list Call NameLoad Str ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str decorator_list decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list
N/A N/A urllib N/A urlparse N/A base64 N/A datetime N/A re N/A tornado oauth2u.server plugins oauth2u.server.handlers.register register N/A oauth2u.tokens base BaseRequestHandler N/A __all__ N/A AuthorizationHandler AccessTokenHandler add_query_to_url AuthorizationHandler N/A BaseRequestHandler N/A N/A 
    Handler for the Authorization Request defined in
    http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-4.1.1

    The default behaviour is to redirect with access token without
    any verification.
    This can (and should) be customized via plugins.

    On errors, GET parameters (`error', `error_description') are provided
    with more information on redirect to `redirect_uri'.
    Unless the error is an invalid/missing `redirect_uri', in this case
    a 400 status code is raises with error information on body.
    
     N/A supported_response_types N/A code initialize N/A N/A self N/A kwargs N/A N/A N/A self code None N/A N/A self state None N/A N/A self client_id None N/A N/A self redirect_uri None N/A get N/A N/A self N/A N/A N/A N/A N/A self load_parameters N/A N/A N/A self verify_response_type N/A N/A N/A self create_authorization_token N/A N/A N/A self save_client_tokens N/A N/A N/A N/A plugins call authorization-GET self N/A N/A N/A N/A self redirect_access_granted N/A self client_id N/A self code N/A post N/A N/A self N/A N/A N/A N/A N/A N/A plugins call authorization-POST self N/A N/A N/A N/A self raise_http_error 405 N/A verify_response_type N/A N/A self N/A N/A N/A value N/A N/A self require_argument response_type N/A N/A value N/A self supported_response_types N/A N/A error N/A error error_description unsupported_response_type Supported response_type: code N/A N/A N/A self raise_http_invalid_argument_error response_type error N/A load_parameters N/A N/A self N/A N/A N/A N/A self state N/A N/A self get_argument state None N/A N/A self redirect_uri N/A N/A self require_argument redirect_uri N/A N/A self client_id N/A N/A self require_argument client_id N/A N/A N/A N/A N/A N/A self application database find_client N/A self client_id N/A N/A N/A N/A self raise_http_401 N/A error error_description invalid_client Invalid client_id or code on Authorization header N/A raise_http_invalid_argument_error N/A N/A self parameter error N/A N/A N/A N/A parameter N/A redirect_uri client_id N/A N/A N/A N/A self raise_http_400 error N/A N/A N/A N/A self raise_http_302 error N/A create_authorization_token N/A N/A self N/A N/A N/A N/A self code N/A N/A N/A oauth2u tokens generate_authorization_code N/A redirect_access_granted N/A N/A self client_id code N/A N/A N/A 
        Redirects the user back to ``redirect_uri`` with grant code
         N/A params N/A code code N/A state N/A N/A N/A N/A self application database get_state client_id code N/A N/A state None N/A N/A N/A params N/A state state N/A N/A N/A self redirect_to_redirect_uri_with_params params client_id code N/A redirect_access_denied N/A N/A self client_id code N/A N/A N/A 
        Redirects the user back to ``redirect_uri`` with access_denied error
         N/A params N/A error error_description access_denied The resource owner or authorization server denied the request N/A N/A N/A self redirect_to_redirect_uri_with_params params client_id code N/A redirect_unauthorized_client N/A N/A self client_id code N/A N/A N/A params N/A error error_description unauthorized_client The client is not authorized to request an authorization code using this method N/A N/A N/A self redirect_to_redirect_uri_with_params params client_id code N/A redirect_temporarily_unavailable N/A N/A self client_id code N/A N/A N/A params N/A error error_description temporarily_unavailable The authorization server is currently unable to handle the request N/A N/A N/A self redirect_to_redirect_uri_with_params params client_id code N/A redirect_server_error N/A N/A self client_id code N/A N/A N/A params N/A error error_description server_error The authorization server encountered an unexpected condition which prevented it from fulfilling the request N/A N/A N/A self redirect_to_redirect_uri_with_params params client_id code N/A redirect_invalid_scope N/A N/A self client_id code N/A N/A N/A params N/A error error_description invalid_scope The requested scope is invalid, unknown, or malformed N/A N/A N/A self redirect_to_redirect_uri_with_params params client_id code N/A redirect_to_redirect_uri_with_params N/A N/A self params client_id code N/A N/A N/A redirect_uri N/A N/A N/A N/A self application database get_redirect_uri client_id code N/A url N/A N/A self build_redirect_uri params redirect_uri N/A N/A N/A self redirect url N/A build_redirect_uri N/A N/A self params base_url N/A None N/A N/A N/A add_query_to_url N/A base_url N/A self redirect_uri params N/A save_client_tokens N/A N/A self N/A N/A N/A N/A N/A N/A N/A self application database save_new_authorization_code N/A self code N/A self client_id N/A self state redirect_uri N/A self redirect_uri N/A N/A N/A register /authorize AccessTokenHandler N/A BaseRequestHandler N/A N/A 
    Handler for the Access Token Request defined in
    http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-4.1.3

     N/A required_content_type application/x-www-form-urlencoded;charset=UTF-8 post N/A N/A self N/A N/A N/A N/A N/A self validate_headers N/A N/A N/A self load_arguments N/A N/A N/A self parse_authorization_header N/A N/A N/A self validate_client_authorization N/A N/A N/A self build_response N/A N/A N/A self mark_client_authorization_code_as_used N/A validate_headers N/A N/A self N/A N/A N/A N/A N/A self require_header content-type N/A self required_content_type N/A N/A N/A self require_header authorization startswith Basic  N/A load_arguments N/A N/A self N/A N/A N/A N/A N/A self require_argument grant_type authorization_code N/A N/A self code N/A N/A self require_argument code N/A N/A self redirect_uri N/A N/A self require_argument redirect_uri N/A parse_authorization_header N/A N/A self N/A N/A N/A digest N/A N/A N/A N/A self request headers get Authorization N/A digest N/A N/A re sub ^Basic  digest N/A N/A N/A digest N/A N/A base64 b64decode digest N/A N/A N/A TypeError N/A N/A N/A N/A self raise_http_400 N/A error error_description invalid_request Base 64 from Authorization header could not be decoded N/A N/A N/A self client_id N/A self code_from_header N/A N/A digest split : N/A validate_client_authorization N/A N/A self N/A N/A N/A database N/A N/A self application database N/A client N/A N/A database find_client N/A self client_id N/A N/A client N/A N/A N/A N/A self raise_http_401 N/A error error_description invalid_client Invalid client_id or code on Authorization header N/A N/A N/A N/A database client_has_authorization_code N/A self client_id N/A self code_from_header N/A N/A N/A N/A self raise_http_401 N/A error error_description invalid_client Invalid client_id or code on Authorization header N/A N/A N/A N/A database client_has_authorization_code N/A self client_id N/A self code N/A N/A N/A N/A self raise_http_400 N/A error error_description invalid_grant Invalid code for this client N/A N/A N/A N/A database client_has_redirect_uri_for_code N/A self client_id N/A self code N/A self redirect_uri N/A N/A N/A N/A self raise_http_400 N/A error error_description invalid_grant redirect_uri does not match N/A N/A N/A database is_client_authorization_code_used N/A self client_id N/A self code N/A N/A N/A N/A self raise_http_400 N/A error error_description invalid_grant Authorization grant already used N/A N/A N/A plugins call access-token-validation self N/A mark_client_authorization_code_as_used N/A N/A self N/A N/A N/A N/A N/A N/A N/A self application database mark_client_authorization_code_as_used N/A self client_id N/A self code N/A build_response N/A N/A self N/A N/A N/A response N/A access_token token_type expires_in N/A N/A self build_access_token bearer 3600 N/A N/A N/A plugins call access-token-response self response N/A N/A N/A self write response N/A build_access_token N/A N/A self N/A N/A N/A N/A N/A N/A oauth2u tokens generate_access_token N/A set_default_headers N/A N/A self N/A N/A N/A N/A N/A self set_header Cache-Control no-store N/A N/A N/A self set_header Pragma no-cache N/A N/A N/A register /access-token add_query_to_url N/A N/A url params N/A N/A N/A parts N/A N/A urlparse urlparse url N/A query N/A dict N/A N/A urlparse parse_qsl N/A parts query N/A N/A N/A query update params N/A N/A N/A urlparse urlunparse N/A N/A parts scheme N/A parts netloc N/A parts path N/A parts params N/A N/A urllib urlencode query N/A parts fragment N/A