Skip to content

Commit e342e93

Browse files
authored
Update app_config_b2c.py
A temporary solution to document the deprecation of resetpassword_user_flow
1 parent 6bb73a9 commit e342e93

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

app_config_b2c.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
b2c_tenant = "fabrikamb2c"
44
signupsignin_user_flow = "B2C_1_signupsignin1"
55
editprofile_user_flow = "B2C_1_profileediting1"
6-
resetpassword_user_flow = "B2C_1_passwordreset1"
6+
7+
resetpassword_user_flow = "B2C_1_passwordreset1" # Note: Legacy setting.
8+
# If you are using the new
9+
# "Recommended user flow" (https://docs.microsoft.com/en-us/azure/active-directory-b2c/user-flow-versions),
10+
# you can remove the resetpassword_user_flow and the B2C_RESET_PASSWORD_AUTHORITY settings from this file.
11+
712
authority_template = "https://{tenant}.b2clogin.com/{tenant}.onmicrosoft.com/{user_flow}"
813

914
CLIENT_ID = "Enter_the_Application_Id_here" # Application (client) ID of app registration
@@ -20,8 +25,12 @@
2025
tenant=b2c_tenant, user_flow=signupsignin_user_flow)
2126
B2C_PROFILE_AUTHORITY = authority_template.format(
2227
tenant=b2c_tenant, user_flow=editprofile_user_flow)
28+
2329
B2C_RESET_PASSWORD_AUTHORITY = authority_template.format(
2430
tenant=b2c_tenant, user_flow=resetpassword_user_flow)
31+
# If you are using the new
32+
# "Recommended user flow" (https://docs.microsoft.com/en-us/azure/active-directory-b2c/user-flow-versions),
33+
# you can remove the resetpassword_user_flow and the B2C_RESET_PASSWORD_AUTHORITY settings from this file.
2534

2635
REDIRECT_PATH = "/getAToken" # Used for forming an absolute URL to your redirect URI.
2736
# The absolute URL must match the redirect URI you set

0 commit comments

Comments
 (0)