If we disable self-service registration, how can we add users originating from an OpenID provider?
reference: [Disable and Modify Activation Email on Registration #3790](https://support.aspnetzero.com/QA/Questions/3790/Disable-and-Modify-Activation-Email-on-Registration)
When I authenticate with Azure AD B2C, I'm seeing a unique username, where did that come from? I'm not seeing that value in my id_token
so I'm guessing it was generated by ASP.NET Zero 🤔?
What values do we enter here?
1 Answer(s)
-
0
Hi,
You can't register an external user by creating a new user on User list page. An external user must login via an external auth provider like OpenID Connect. During hte login process, ASP.NET Zero itself creates the user.
Even if "self user registration" is disabled, external users can still login to the app.
The username you see is generated here https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Core/Authentication/External/DefaultExternalLoginInfoManager.cs#L33