Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password protection added #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Password protection added #44

wants to merge 2 commits into from

Conversation

Kevinf7
Copy link

@Kevinf7 Kevinf7 commented Sep 11, 2021

I have added ability to password protect the swagger endpoint. If user decides to add a SWAGGER_PASSWORD environment variable, the endpoint will require user to pass in a query parameter (eg http://mysite.com?pass=abc) in order to access the swagger doc. This is useful when your API goes live, and you want to keep the swagger document available for your team but not have it open to anyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant