Module Expr Str ImportFrom alias Import alias alias alias alias alias Import alias Import alias Import alias Import alias identifier ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Dict Assign NameStore Dict Assign NameStore Dict FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad NameLoad ListLoad TupleLoad Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num orelse If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr Str Assign NameStore Call NameLoad ListComp Call AttributeLoad NameLoad attr Str comprehension NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num orelse If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad ListComp TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num comprehension NameStore ListComp Call AttributeLoad Call AttributeLoad NameLoad attr attr Str comprehension NameStore Call NameLoad Str Str If CompareEq NameLoad Str body If CompareIn NameLoad NameLoad body Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq SubscriptLoad NameLoad Index Str Str body Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad NameLoad Assign NameStore BinOpAdd NameLoad BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Str orelse If CompareEq SubscriptLoad NameLoad Index Str Str body Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad NameLoad NameLoad Expr Call NameLoad BinOpMod Str NameLoad Assign NameStore Str Assign NameStore BinOpAdd NameLoad BinOpMod NameLoad TupleLoad NameLoad NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index NameLoad Call AttributeLoad NameLoad attr Str Str Assign NameStore NameLoad Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore NameLoad Assign NameStore BinOpMod NameLoad TupleLoad SubscriptLoad NameLoad Index Str NameLoad Call AttributeLoad NameLoad attr Str Str CompareIn Str NameLoad NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str Str SubscriptLoad NameLoad Index Str orelse If CompareEq NameLoad Str body Assign NameStore Str If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call NameLoad BinOpMod Str TupleLoad NameLoad Call NameLoad CompareIn NameLoad NameLoad If CompareIn NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad If CompareGt Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Dict Assign NameStore Str orelse Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad BinOpAdd NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Dict Assign NameStore Str Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str Str TupleLoad Str Str If NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad Assign NameStore Str Expr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Print Str Expr Call AttributeLoad NameLoad attr Print Str Print Call NameLoad Dict Str Str Str Str Lambda arguments args NameParam NameParam defaults NameLoad Print Call NameLoad Dict Str Str Str Str Lambda arguments args NameParam NameParam defaults NameLoad Print Call NameLoad Dict Str Str Str Str Lambda arguments args NameParam NameParam defaults NameLoad Return Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad TryFinally body Expr Call AttributeLoad Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num
N/A N/A 
remote storage web service authentication (oauth2) module.
should implement https://tools.ietf.org/id/draft-dejong-remotestorage-00.txt
and [OAUTH2]

To be run behind an nginx server, and supervised by daemontools. flup.server.fcgi WSGIServer N/A datetime time os sys re N/A optparse N/A urllib N/A traceback N/A simplejson json hashlib md5 N/A __usage__ %prog -n <num> N/A __version__ $Id$ N/A __author__ Thomas Hirsch <thomashirsch gmail com> N/A FCGI_SOCKET_DIR /tmp N/A FCGI_SOCKET_UMASK 73 N/A SALT salt of the earth N/A TOKEN_EXPIRY 10 N/A ACCESS_TOKEN_EXPIRY 300 N/A REFRESH_TOKEN_EXPIRY 3600 N/A MSG_AUTH_REQUEST 
<html>
<body>
<tt>The following (currently unauthorized) application applied to access your storage: <br />
CLIENT: "%s"  -- who they pretend to be.<br />
URI   : "%s"  -- make sure this is a fully qualified URI.<br />
SCOPE : "%s"  -- just a suggestion. <br />
STATE : %s  -- cross-site forgery possible if not provided.<br />
If you wish to grant access, please register the following code: "%s". <br />
<a href="auth?client_id=%s&redirect_uri=%s&state=%s&response_type=%s">refresh</a>
</tt>
</body>
</html>
 N/A codeTokens N/A N/A accessTokens N/A N/A refreshTokens N/A log N/A N/A msg N/A N/A N/A fd N/A open auth.log a N/A N/A N/A fd write N/A msg N/A N/A N/A fd close N/A fail N/A N/A start_response responseCode msg N/A N/A N/A N/A start_response responseCode N/A N/A Content-Type text/plain N/A msg N/A buildToken N/A N/A now code N/A N/A N/A m N/A md5 N/A N/A N/A m update SALT N/A N/A N/A m update code N/A N/A N/A m update N/A str now N/A token N/A N/A m hexdigest N/A token N/A auth N/A N/A environ start_response N/A N/A N/A result N/A responseCode 200 Ok N/A returnContentType text/html N/A redirect False N/A request N/A environ N/A REQUEST_URI N/A method N/A environ N/A REQUEST_METHOD N/A N/A log N/A %s %s N/A method request N/A N/A method POST N/A N/A options N/A N/A N/A environ N/A wsgi.nput read N/A application N/A N/A N/A request split / N/A -1 N/A N/A N/A method GET N/A N/A N/A application options N/A N/A N/A N/A N/A request split / N/A -1 split ? N/A p N/A dict N/A N/A N/A x split = N/A x N/A N/A options split & N/A m N/A md5 N/A N/A N/A m update SALT N/A N/A N/A m update N/A N/A p get client_id N/A decodedURI N/A N/A urllib unquote N/A N/A p get redirect_uri N/A N/A ? decodedURI N/A N/A N/A N/A m update N/A N/A N/A decodedURI split ? N/A 0 N/A N/A N/A # decodedURI N/A N/A N/A N/A m update N/A N/A N/A decodedURI split # N/A 0 N/A N/A N/A N/A m update decodedURI N/A code N/A N/A m hexdigest N/A now N/A N/A time time N/A token N/A buildToken now code N/A keys N/A dict N/A N/A N/A access N/A 0 N/A access N/A 1 N/A access N/A N/A N/A N/A N/A line strip split N/A line N/A open .auth r N/A N/A application auth N/A N/A N/A code keys N/A N/A N/A expiry scope N/A keys N/A code N/A N/A N/A p N/A response_type code N/A N/A N/A codeTokens N/A token N/A now code N/A uri N/A decodedURI N/A ?code=%s&state=%s N/A token N/A p N/A state N/A N/A N/A N/A p N/A response_type token N/A N/A N/A accessTokens N/A token N/A now code scope N/A N/A log N/A new token %s token N/A uri #access_token=%s&token_type=bearer&expires_in=%d&scope=%s&state=%s N/A uri N/A decodedURI N/A uri N/A token ACCESS_TOKEN_EXPIRY N/A N/A + join N/A keys N/A code N/A N/A p get state N/A redirect uri N/A result N/A Redirecting to %s. uri N/A N/A result MSG_AUTH_REQUEST N/A result N/A result N/A N/A p N/A client_id decodedURI N/A N/A p get scope Not specified N/A state p code N/A p N/A client_id N/A p N/A redirect_uri N/A N/A p get state N/A p N/A response_type N/A N/A N/A application vrfy N/A N/A returnContentType application/json;charset=UTF-8 N/A N/A N/A p N/A access_type token N/A N/A token N/A p N/A token N/A N/A log N/A vrfy token %s is valid: %s N/A token N/A str N/A token accessTokens N/A N/A token accessTokens N/A N/A N/A timestamp code scope N/A accessTokens N/A token N/A N/A N/A N/A time time N/A timestamp ACCESS_TOKEN_EXPIRY N/A N/A result N/A N/A json dumps N/A N/A responseCode 401 Expired N/A N/A result N/A N/A json dumps N/A verified-for scope expires code scope N/A timestamp ACCESS_TOKEN_EXPIRY N/A N/A result N/A N/A json dumps N/A N/A responseCode 401 Unauthorized N/A headers N/A N/A Content-Type returnContentType N/A Cache-Control no-store N/A Pragma no-cache N/A redirect N/A N/A N/A N/A headers append N/A Location redirect N/A responseCode 302 Granted N/A N/A start_response responseCode headers N/A result N/A get_application N/A N/A N/A N/A N/A auth N/A get_socketpath N/A N/A name server_number N/A N/A N/A N/A N/A N/A os path join FCGI_SOCKET_DIR N/A fcgi-%s-%s.socket N/A name server_number N/A main N/A N/A args_in app_name N/A rsauth N/A N/A p N/A N/A optparse OptionParser description __doc__ version __version__ N/A N/A N/A p set_usage __usage__ N/A N/A N/A p add_option -v action store_true dest verbose help verbose logging N/A N/A N/A p add_option -n type int dest server_num help Server instance number N/A N/A opt args N/A N/A p parse_args args_in N/A N/A N/A opt server_num N/A N/A ERROR: server number not specified N/A N/A N/A p print_help N/A Running test cases. N/A N/A auth N/A REQUEST_URI REQUEST_METHOD //auth?client_id=test&redirect_uri=foo&response_type=code&state=elated GET N/A N/A N/A x y N/A None N/A N/A auth N/A REQUEST_URI REQUEST_METHOD //auth?client_id=test&redirect_uri=foo&response_type=token&state=elated GET N/A N/A N/A x y N/A None N/A N/A auth N/A REQUEST_URI REQUEST_METHOD //vrfy?token=test&access_type=token&state=elated GET N/A N/A N/A x y N/A None N/A N/A socketfile N/A get_socketpath app_name N/A opt server_num N/A app N/A get_application N/A N/A N/A N/A N/A N/A WSGIServer app bindAddress socketfile umask FCGI_SOCKET_UMASK multiplexed True run N/A N/A N/A N/A os unlink socketfile N/A N/A N/A __name__ __main__ N/A N/A N/A main N/A N/A sys argv N/A 1