Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 438 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 438 Bytes

swagger-basic-auth-middleware

.NET Core MVC Middleware for securing the .json files from unauthorized access with Basic Auth.

What to do

  • 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.