#NEWLINE# def oauth_auth( self , token = None , oauth_verifier = None ) : #NEWLINE# #INDENT# ( key , secret ) = self . get_key_and_secret ( ) #NEWLINE# oauth_verifier = ( oauth_verifier or self . data . get ( 'oauth_verifier' ) ) #NEWLINE# token = ( token or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# decoding = ( None if six . PY3 else 'utf-8' ) #NEWLINE# state = self . get_or_create_state ( ) #NEWLINE# return OAuth1 ( token , secret , resource_owner_key = token . get ( 'oauth_token' ) , resource_owner_secret = token . get ( 'oauth_token_secret' ) , callback_uri = self . get_redirect_uri ( state ) , verifier = oauth_verifier , signature_method = SIGNATURE_HMAC , signature_type = SIGNATURE_TYPE_QUERY , decoding = decoding )