flask-swagger-ui
flask-swagger-ui copied to clipboard
Could flask_swagger_ui support base auth?
When the swagger doc can only be accessed by someone who know the username and password, supporting base auth will be necessary.
From the website of flask_swagger_ui, it supports oauth which seems to be complicated for our project's requirement. Could you support base auth in the future release?
Here could be a usage example of base auth.
swagger_blueprint = get_swaggerui_blueprint( '/api-docs', '/static/swagger.json', config={ 'app_name': "app-name" }, basic-auth-config = {users: {'userName': 'password' }} )