#NEWLINE# def get_authenticated_user( self , callback ) : #NEWLINE# #INDENT# 'Fetches the authenticated user data upon redirect.' #NEWLINE# oauth_ns = '' #NEWLINE# for ( name , values ) in self . request . arguments . iteritems ( ) : #NEWLINE# #INDENT# if ( name . startswith ( 'openid.ns.' ) and ( values [ ( - 1 ) ] == 'http://specs.openid.net/extensions/oauth/1.0' ) ) : #NEWLINE# #INDENT# oauth_ns = name [ 10 : ] #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# token = self . get_argument ( ( ( 'openid.' + oauth_ns ) + '.request_token' ) , '' ) #NEWLINE# if token : #NEWLINE# #INDENT# http = httpclient . AsyncHTTPClient ( ) #NEWLINE# token = dict ( key = token , secret = '' , verifier = '' ) #NEWLINE# http . fetch ( self . _oauth_access_token_url ( token ) , self . async_callback ( self . _on_access_token , oauth_ns ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# OpenIdMixin . get_authenticated_user ( self , callback )