- ASP .NET Core 10 - Blazor server - Identity - Entity Framework
My blazor server project is as good as finished, and thereby I want to add the final layer to it; authentication and authorization. When I created the project I selected the checkbox to add Identity to the project. This created for me in the
Program.cs
Program.cs
and in the
Components
Components
configurations for Identity. Also the database has now several tables to match the created pages in the Components folder.
When this thing goes in production (Azure hosted), I want to use Entra for the login, so that only members of said organization can login. I want to specifically narrow that further down to only allow certain accounts to access it (I am quite convinced this is possible in Entra). For development purposes a fake user or bypassing auth is good enough.
The question I have now;
- Whats the correct way of setting a 2FA login provider for development and production environments?