title: Add Authentication to /swagger/ui/index page - Swagger | Web API | Swashbuckle
body: <p>I'm working on a Swagger (Web API) project.<br>
  When I first run the application it shows the Login page for Swagger UI.<br>
   So, a user first has to login to access Swagger UI Page, However, if user directly enters "<a href="http://example.com/swagger/ui/index" rel="noreferrer">http://example.com/swagger/ui/index</a>" then he's able to access the Swagger UI page.</p>
  
  <p>afaik the swagger-ui is served by the swashbuckle assembly. The source is not available in my project.   </p>
  
  <p>How can I make the user redirect to login page if he's not logged in to Swagger UI page?</p>