When using the [Authorize] attribute with policies, the specified policy name must be previously registered in the _________.

  • Startup.cs
  • Program.cs
  • appsettings.json
  • ConfigureServices method
When using the [Authorize] attribute with policies, the specified policy name must be previously registered in the ConfigureServices method within the Startup.cs file. This is where you define and configure your authorization policies, associating them with specific requirements and roles.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *