We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a51912c commit 4863747Copy full SHA for 4863747
1 file changed
app.py
@@ -45,8 +45,7 @@ def authorized():
45
46
@app.route("/logout")
47
def logout():
48
- session["user"] = None # Log out from this app from its session
49
- # session.clear() # If you prefer, this would nuke the user's token cache too
+ session.clear() # Wipe out user and its token cache from session
50
return redirect( # Also need to logout from Microsoft Identity platform
51
"https://login.microsoftonline.com/common/oauth2/v2.0/logout"
52
"?post_logout_redirect_uri=" + url_for("index", _external=True))
0 commit comments