Authentication process with external provider (Entra ID)
Is there an existing issue for this?
- [X] I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
Maybe this request is related somehow with issue #12217.
Scenario 1:
- You have an application using Azure AD or Entra ID authentication
context.Services.AddAuthentication().AddOpenIdConnect(...) - At first you only have the admin user.
- A new user want to access using Azure Entra ID authentication.
- The user is authenticated as expected and the application ask the user to fill the login and email before accessing the application.
- Once the user fills the username and email he/she can access the application
Scenario 2:
- You have an application using Azure AD or Entra ID authentication
context.Services.AddAuthentication().AddOpenIdConnect(...) - At first you only have the admin user, sign in with admin and creates a new user with the required data: username, password and email ([email protected]) without any block.
- Now the user [email protected] want to access the application with Azure Entra ID.
- The user is authenticated as expected and the application ask the user to fill the login and email before accessing the application.
- The user fills the data using the email [email protected]
- The application raise an alert saying that the user already exists
- The user cannot sign in into the application unless he/she uses a different username and email address (which is not related to his/her company).
Describe the solution you'd like
I would like the login/registration process to be more simple for the end user.
In the scenario 1, steps 4 and 5 could be skipped if the application uses the external provider info to create the login (I guess this is what is happening in those steps) and let the user access to the application directly.
In the scenario 2, steps from 6 to 9 could be skipped as well. If the application knows that the login already exists, it could add the new authentication method for this user and let the user access to the application directly.
Additional context
Screen after success authentication with an external provider:
Screen after after success authentication with an external provider when the email already exist in the application:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale