Take a look at http://petstore.swagger.io, which uses oauth2 for implicit flow.
> On Nov 28, 2016, at 9:07 AM, Luiz Omori <[email protected]> wrote: > > Clarification: I'm talking about Swagger-UI. Sorry if this is not the > appropriate forum and I would appreciate if anyone could redirect me > accordingly. > > On Monday, November 28, 2016 at 11:16:29 AM UTC-5, Luiz Omori wrote: > Hi, > > I'm a bit confused on how to do it. My Swagger JSON files are protected > (OAuth2) and I need to be able to do acquire an access token (Implicit or > Authorization Code flows) from our OAuth2 server PRIOR to access the Swagger > files. Note that our APIs are also protected by OAuth2 which may be distinct > from the one used to protect the Swagger files. In resume, need help with #1 > below. > > 1. Need to acquire access token from OAuth server A to retrieve the API X > Swagger file. > 2. Need to acquire access token from OAuth server B to call API X. > > 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.
