#NEWLINE# @ app . route ( '/oauth_callback' ) #NEWLINE# def oauth_callback( ) : #NEWLINE# #INDENT# 'Callback function for when the user returns from OAuth.' #NEWLINE# ( access_token , uid , extras ) = get_flow ( ) . finish ( request . args ) #NEWLINE# redis_client . hset ( 'tokens' , uid , access_token ) #NEWLINE# process_user ( uid ) #NEWLINE# return redirect ( url_for ( 'done' ) )