Skip to content
Prev Previous commit
Next Next commit
fixup! Existing features just work in B2C. We added profile page only.
  • Loading branch information
rayluo committed Nov 1, 2019
commit e662db4ec691d71e957c43ac5c5c4324d40ccf16
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def logout():
"?post_logout_redirect_uri=" + url_for("index", _external=True))

# This page is only used in B2C scenario
@app.route("/profile")
def profile():
@app.route("/edit_profile")
def edit_profile():
app = _build_msal_app(authority=app_config.B2C_PROFILE_AUTHORITY)
return redirect(app.get_authorization_request_url([],
state=str(uuid.uuid4()),
Expand Down
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h2>Welcome {{ user.get("name") }}!</h2>
{% endif %}

{% if config.get("B2C_PROFILE_AUTHORITY") %}
<li><a href='/profile'>Edit Profile</a></li>
<li><a href='/edit_profile'>Edit Profile</a></li>
{% endif %}

<li><a href="/logout">Logout</a></li>
Expand Down