.NET Core MVC Middleware for securing the .json files from unauthorized access with Basic Auth.
- Setup Swagger as per usual
- Add configuration to appsettings.json or other store
- In Startup.cs add services.Configure(Configuration.GetSection("YOUR SECTION")); or similiar.
- In Configure() add .UseMiddleware() before adding Swagger.