#NEWLINE# @ app . route ( '/api/auth/callback/twitter/' ) #NEWLINE# def twitter_authorized( ) : #NEWLINE# #INDENT# response = twitter . authorized_response ( ) #NEWLINE# if ( response is None ) : #NEWLINE# #INDENT# flask . flash ( 'You denied the request to sign in.' ) #NEWLINE# return flask . redirect ( util . get_next_url ( ) ) #NEWLINE# #UNINDENT# flask . session [ 'oauth_token' ] = ( response [ 'oauth_token' ] , response [ 'oauth_token_secret' ] ) #NEWLINE# user_db = retrieve_user_from_twitter ( response ) #NEWLINE# return auth . signin_user_db ( user_db )