You can pass a header to the constructor of the swagger-ui object, which will 
be used when fetching the document.  Take a look at the swagger-ui constructor 
options in the repo for details.

> On Nov 28, 2016, at 9:58 AM, Luiz Omori <[email protected]> wrote:
> 
> Well, part of it (OAuth server login) happens before however we still need to 
> inject the Authorization Bearer header for the Swagger file retrieval.
> 
> I've seen this in the documentation which seems promising but not quite sure 
> how to use it or if indeed that's going to help. Do you have any examples 
> using this parameter?
> 
> authorizations        An authorization object to be passed to swagger-js. 
> Setting it here will trigger inclusion of any authorization or custom signing 
> logic when fetching the swagger description file. Note the object structure 
> should be { key: AuthorizationObject }
> 
> Regards,
> Luiz
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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