Skip to content

Commit b4bc23b

Browse files
committed
Does not hardcode the logout url
1 parent a170494 commit b4bc23b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def authorized():
4646
@app.route("/logout")
4747
def logout():
4848
session.clear() # Wipe out user and its token cache from session
49-
return redirect( # Also need to logout from Microsoft Identity platform
50-
"https://login.microsoftonline.com/common/oauth2/v2.0/logout"
49+
return redirect( # Also logout from your tenant's web session
50+
app_config.AUTHORITY + "/oauth2/v2.0/logout" +
5151
"?post_logout_redirect_uri=" + url_for("index", _external=True))
5252

5353
@app.route("/graphcall")

0 commit comments

Comments
 (0)