Your application uses ASP.NET Core Identity for authentication. During the security audit, it was pointed out that the application should enforce password reset every 90 days. How can you enforce this in ASP.NET Core?
- Configure password expiration in IdentityOptions
- Create a custom middleware to force password reset
- Implement a password reset policy in the login controller
- Use a third-party identity management library
To enforce password reset every 90 days in ASP.NET Core Identity, you should configure the password expiration policy in the IdentityOptions during application startup. This policy can be set to require users to change their passwords after a specified number of days.
Loading...
Related Quiz
- After writing your ASP.NET Core application code, you want to build and run your application using a command-line tool. Which tool would you use for this purpose?
- Which of the following is NOT a standard provider for ASP.NET Core Identity user authentication?
- In a Razor form, how can you prevent the form from being submitted if client-side validation fails?
- For projects focused on background tasks and might run as Windows services or Linux daemons, you should use the ________ template.
- In a blogging platform built with ASP.NET Core MVC, when a user submits a new blog post, which component would handle the validation and submission process?