Securing Controllers

Get familiar with securing web API controllers.

As we know, here are the two types of web API endpoints:

  • Controllers

  • Minimal APIs

In this lesson, we will learn different ways of securing the endpoints represented by controller classes. We will do so with the help of the following setup:

{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "AllowedHosts": "*"
}
Web API app with the full OIDC authentication flow

Note: Because we have to build two ASP.NET Core applications and ...