alt3 / cakephp-swagger

Swagger plugin for documenting your CakePHP APIs
MIT License
64 stars 17 forks source link

How to use JWT Authorization using Bearer <token> #32

Open hm-91 opened 7 years ago

hm-91 commented 7 years ago

Is there any way to use api_key to represent 'Authorization: Bearer <token>' in header.

bravo-kernel commented 7 years ago

To be honest I'm not sure since I have only used the UI to manually set the JWT header. You might want to check the issues mentioning on the Swagger github repo.

curtisgibby commented 7 years ago

See latest comments on https://github.com/swagger-api/swagger-ui/issues/818 . I'm also eagerly awaiting JWT support in this project, but it sounds like it's still at least a few months away.

bravo-kernel commented 7 years ago

Thanks for sharing Mr. @curtisgibby, I will have a quick look myself this weekend, perhaps we can add some magic ourselves while waiting for formal support. Suggestions/PR welcome