cakephp-swagger icon indicating copy to clipboard operation
cakephp-swagger copied to clipboard

How to use JWT Authorization using Bearer <token>

Open hm-91 opened this issue 8 years ago • 3 comments

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

hm-91 avatar Jan 23 '17 07:01 hm-91

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.

bravo-kernel avatar Jan 27 '17 13:01 bravo-kernel

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.

curtisgibby avatar Jan 27 '17 21:01 curtisgibby

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

bravo-kernel avatar Jan 27 '17 21:01 bravo-kernel