Hello
Is it possible to add the authorization token programmatically in Swagger 
2.0?
I have been able to create the Authorize button, by adding


securityDefinitions:
  Bearer:
    type: apiKey
    in: header
    name: Authorization



which lets me enter the JWT id-Token manually, but my users are going to be 
looking at the Swagger Docs while already being logged in, and I want to 
avoid having to teach them where to find their own new id-token and copy 
pasting this in every time they are using the docs.


I can put the token into the header when serving the swagger page, but I 
don't find any way for me to automatically populate the authorize value.

Any tips is greatly appreciated.
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to