We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 509b3a2 commit 5d609b2Copy full SHA for 5d609b2
1 file changed
app.py
@@ -50,7 +50,9 @@ def authorized():
50
def logout():
51
session["user"] = None # Mark current session as not-logged-in
52
# session.clear() # If you prefer, this would nuke the user's token cache too
53
- return redirect(url_for("index"))
+ return redirect( # Also need to logout from Microsoft Identity platform
54
+ "https://login.microsoftonline.com/common/oauth2/v2.0/logout"
55
+ "?post_logout_redirect_uri=" + url_for("index", _external=True))
56
57
@app.route("/graphcall")
58
def graphcall():
0 commit comments