#NEWLINE# @ app . route ( '/login/authorized' ) #NEWLINE# def authorized( ) : #NEWLINE# #INDENT# resp = github . authorized_response ( ) #NEWLINE# if ( resp is None ) : #NEWLINE# #INDENT# return ( 'Access denied: reason=%s error=%s' % ( request . args [ 'error' ] , request . args [ 'error_description' ] ) ) #NEWLINE# #UNINDENT# session [ 'github_token' ] = ( resp [ 'access_token' ] , '' ) #NEWLINE# me = github . get ( 'user' ) #NEWLINE# return jsonify ( me . data )