Skip to content

Commit

Permalink
Make it more clear that the profile page is only used in B2C scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
rayluo committed Oct 30, 2019
1 parent 5d76b13 commit 4643cba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ def logout():
app_config.AUTHORITY + "/oauth2/v2.0/logout" +
"?post_logout_redirect_uri=" + url_for("index", _external=True))

# This page is only used in B2C scenario
@app.route("/profile")
def profile(): # Only used in B2C scenario
def profile():
app = _build_msal_app(authority=app_config.B2C_PROFILE_AUTHORITY)
return redirect(app.get_authorization_request_url([],
state=str(uuid.uuid4()),
Expand Down

0 comments on commit 4643cba

Please sign in to comment.