flask-restx icon indicating copy to clipboard operation
flask-restx copied to clipboard

add password to protect the UI page

Open kinizumi opened this issue 3 years ago • 1 comments

Ask a question A clear and concise question: the UI page is exposing to public and everyone can play with the endpoints, this is danger if we couldont add password to protect the UI page

Additional context Add any other context or screenshots about the feature request here.

kinizumi avatar Feb 11 '22 20:02 kinizumi

Is there a reason you want to hide the UI page specifically?

If you are trying to protect from people from using your endpoints without permission, you would be far better using some basic authentication scheme such as flask-httpauth rather than simply hiding the docs.

You can then integrate that authentication into your flask-restx swagger docs (UI) following the steps here

peter-doggart avatar Feb 17 '22 13:02 peter-doggart