Skip to content

Could flask_swagger_ui support base auth? #51

@helloRoc

Description

@helloRoc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions