From the course: ASP.NET Core Identity: Authentication Management

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Configuring Identity settings

Configuring Identity settings - ASP.NET Core Tutorial

From the course: ASP.NET Core Identity: Authentication Management

Start my 1-month free trial

Configuring Identity settings

- [Instructor] We have seen so far that ASP .NET Core identity uses default values for settings such as password, lockout, et cetera. But all these settings can be overwritten in the startup.cs class, which is also known as the configuration class in .NET Core framework. To configure, or overwrite the default settings, we use the IdentityOptions class which represents the options that can be used to configure the identity system. Using the IdentityOptions class, we can define options like claims identity, the lockout, password, sign-in, tokens, user-related settings and cooking settings, as well. We are going to talk about the cooking settings in an upcoming chapter where we talk about cookie-based authentication. Now, let us go to our solution and see how we can add identity option to our projects. In our solution we are going to start with the first project, which is Auth20. So, let us go to the startup.cs class, because we said that this class is used for all configurations. Scroll…

Contents