def callback(): manager.authorized_response() return redirect('AFTER_LOGIN')
def logout(): manager.clear() return redirect('AFTER_LOGOUT')
def userinfo(): if manager.authenticated(): return jsonify(manager.userinfo()) return redirect('LOGIN')