Module ImportFrom alias Import alias alias alias alias alias alias alias Expr Str FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Dict Str Str NameLoad Str Return Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad Call AttributeLoad Call AttributeLoad Call NameLoad attr keyword Dict Str Str Str NameLoad Str AttributeLoad NameLoad attr attr Index Str decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr ListLoad Str Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If NameLoad body Expr Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Str keyword Str orelse Expr Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad keyword Str Expr Call NameLoad Num decorator_list If CompareEq NameLoad Str body Expr Call NameLoad Call AttributeLoad NameLoad attr Str
N/A __future__ print_function N/A constants rauth subprocess os json base64 urlparse N/A  
Auth module for OneNote.
Our strategy is to store only the refresh token and use it every time to get a new access token.
 get_oauth_service N/A N/A N/A N/A N/A N/A client_id client_secret N/A N/A json loads N/A N/A base64 b64decode N/A constants CLIENT_DATA N/A N/A N/A rauth OAuth2Service client_id client_id client_secret client_secret access_token_url N/A constants ENDPOINT_ACCESS authorize_url N/A constants ENDPOINT_AUTHORIZE base_url N/A constants ENDPOINT_BASE N/A get_session N/A N/A stored_refresh_token N/A N/A N/A  called in main extension script to actually get a usable session  N/A service N/A get_oauth_service N/A r N/A N/A service get_raw_access_token data N/A refresh_token grant_type stored_refresh_token refresh_token N/A N/A N/A service get_session N/A N/A N/A r json N/A access_token N/A access N/A N/A authorization_code N/A N/A N/A  obtain the refresh token  N/A N/A N/A N/A N/A N/A N/A get_oauth_service get_raw_access_token data N/A code grant_type redirect_uri authorization_code authorization_code N/A constants CALLBACK json N/A refresh_token N/A authorize N/A N/A N/A N/A N/A  send user to the oauth autorization url in their browser  N/A N/A N/A subprocess call N/A open N/A N/A N/A get_oauth_service get_authorize_url N/A constants AUTHORIZE_DATA N/A main N/A N/A callback_final N/A None N/A N/A  this is called once (with no params) when the user clicks 'log in',
    and again (with params) when they click though the callback landing url  N/A callback_final N/A N/A N/A print N/A N/A json dumps N/A access N/A N/A N/A urlparse parse_qs callback_final N/A code end N/A N/A N/A print N/A N/A json dumps N/A authorize end N/A N/A exit 4 N/A N/A N/A __name__ __main__ N/A N/A N/A main N/A N/A os getenv POPCLIP_AUTH_CALLBACK_FINAL