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

Support for multiple authentication methods with swagger-ui

Open lucasnad27 opened this issue 9 years ago • 3 comments

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

lucasnad27 avatar May 31 '16 20:05 lucasnad27

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!

naymesh avatar Jul 26 '17 22:07 naymesh

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?

FynnMazurkiewicz avatar Jun 30 '20 22:06 FynnMazurkiewicz

Any update on this?

ujjwalmanna avatar Dec 16 '20 17:12 ujjwalmanna