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

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

2 Answer(s)
  • User Avatar
    0
    OriAssurant created

    any updates on this ?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)