Forum Discussion

MohammedAnsari's avatar
MohammedAnsari
Occasional Visitor
6 years ago

Username and password for Swagger UI

I need a quick help in confirguring below

 

when the first time I launch the Swagger Web URI i want it should pop for username and password then take me in .

 

Any suggestions? Please help .

Regards,

Moahmmed

  • Hi there,

     

    This is a bit out of scope for us, because this is not something that should be controlled through Swagger UI.

    At the end of the day, Swagger UI is a collection of static html/css/js files hosted by your application. To add access control to those pages, you'd need to configure your application (or web server) to do so. Since there are so many languages and web servers out there, we're unable to provide specific details for each and every case, however, it should be fairly easy to find the information online based on your tool of choice.