Azure-Samples/ms-identity-python-webapp

Entra External ID for Customers with Streamlit App

mirojs opened this issue · 3 comments

Hello,

I'm trying to Authenticate/Authorize my Azure deployed Web App built by Streamlit with Entra External ID for Customers. May I know if I could benefit from the repo? Any part that could be borrowed? Besides, there doesn't seem to be a dedicated repo for the Entra External ID for customers.Thanks!

@mirojs you'll need to configure the authority to an Entra External ID one. You do this in your environment file.

Here's what you should do:

  • Set the value of CLIENT_ID to the application ID (clientId) of the app you registered in the Microsoft Entra admin center.
  • Set the value of CLIENT_SECRET to the client secret value of the secret you created when registering app in Entra Admin center.
  • Set the value of AUTHORITY to the URL to your customer tenant's domain. For example, if your tenant primary domain is caseyjensen@onmicrosoft.com, the value you should enter is https://caseyjensen.ciamlogin.com/.

We are working on the Python content for Entra External ID. It should be ready sometime next week.

@SHERMANOUKO Thanks for the details! Would the following part be the same whether it's Azure AD B2C or Entra External ID for customers?
SIGNUPSIGNIN_USER_FLOW=B2C_1_signupsignin1
EDITPROFILE_USER_FLOW=B2C_1_profile_editing
RESETPASSWORD_USER_FLOW=B2C_1_reset_password

Would it be the case there's no real difference between the above mentioned two b2c auth methods from coding perspective except the name itself?

@mirojs we dont use those values for Entra External ID. You dont need them