Maybe I'm missing something but I've tracked down the call that is 
retrieving the Swagger file and don't see how the Authorization header can 
be inserted there.

window.swaggerUi.load() -> new SwaggerClient -> SwaggerClient.initialize -> 
SwaggerClient.build. In this method, obj is being constructed and the 
headers field is set only with 'accept'. This is passed down 
to SwaggerHttp().execute(obj, this.options) which sets some interceptors, 
and then calls SuperagentHttpClient.execute which takes the 'accept' header 
from obj but nothing from this.options. Maybe the last method in this chain 
should also take headers from this.options'?

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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to