Forum Discussion

TheMadStrater's avatar
TheMadStrater
Occasional Visitor
3 years ago

Beat practices for authenticating user prior to rendering the swagger landing page?

Hello:  I need to authenticate users before displaying the swagger landing page.  It's great that I can add authorization to the "try it" feature, and I've done that, but I want to authenticate users before they even see the list of API endpoints, and schemas.

 

My application is a .NET Core 3.1 application hosted in IIS.  Should I simply enable IIS level authentication to handle the initial authentication?  Will the user be propagated to swagger UI or will the user have to "Authorize" again on the UI using the swagger UI authorize button?

 

ty!

1 Reply

  • Luis1's avatar
    Luis1
    New Contributor

    I have the same question, How can avoid show the Swagger-Ui before the authentication.