Base solution for your next web application
Open Closed

Regarding Authenticating the swagger index.html page #11852


User avatar
0
OriAssurant created

Hi ,

We have this swagger index page (https://api.alservices.com:4430/swagger/index.html) where we don't want any of the users to directly go on this page without authentication.

We want to redirect them directly to the login page (https://api.alservices.com:4430/Ui/Login). Would you recommend any best practices for the user to redirect when they are on the https://url/swagger/index.html page

thanks


2 Answer(s)
  • User Avatar
    0
    OriAssurant created

    any updates on this ?

  • User Avatar
    0
    Hammer created

    I’m not entirely sure, but I think you should configure the app so that the Swagger page will not be generated at all in a production environment.