flask-restful-swagger
flask-restful-swagger copied to clipboard
Support for multiple authentication methods with swagger-ui
Are there any plans on including configurable authentication methods when adding ApiKeyAuthorization instances in /flask_restful_swagger/static/index.html?
I'd be willing to make a pull request for this, but wanted to get input on the best way to implement. My initial thought is to add some additional kwargs to the swagger.docs function. Let me know what you think. If I end up implementing this in the meantime, I'll link to the commit
Hi @lucasnad27 This would be a nice improvement to have (We use Bearer token in request header, not API keys). I looked at the changes in your branch. Looks pretty good as a first cut to me. Thanks!
This issue seems to currently be hanging a little bit. It was left open despite the respective PR being merged to master.
But now that a lot of time has passed, it seems that the Bearer auth was removed again? I could no longer find the code/parameters added by the PR in the code. Are there any intentions to re-add it?
Any update on this?