Login window not showing for Swagger using Flask

457 Views Asked by At

I have a REST API set up with Flask that has some API documentation.

The documentation is in the code itself, and I am using Flasgger to run the API documentation interface.

The issue is that upon trying to access the API, with the URL https://<server_address>/apidocs/index.html, there is no log in box that is showing up. I merely get the result Authentication required in my browser window.

Browser window

I am expecting a window like this:

Login window

Which I do not get on the remote server. I can log in on localhost perfectly, but not on my remote server.

For some reason the remote server is not giving me that login window. I have tried using both HTTP and HTTPS, because there was mention somewhere that the protocol mattered as well.

Library versions:

  • flask-swagger==0.2.14
  • flasgger==0.9.5
  • pytest-flask==0.15.0

Thanks in advance.

0

There are 0 best solutions below