flask-swagger-ui icon indicating copy to clipboard operation
flask-swagger-ui copied to clipboard

Could flask_swagger_ui support base auth?

Open helloRoc opened this issue 2 years ago • 0 comments

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' }} )

helloRoc avatar Jun 24 '22 10:06 helloRoc