If it’s something that happens before you get the swagger doc, you’ll have to 
do it on your own.  That’s outside the scope of the project

> On Nov 28, 2016, at 9:14 AM, Luiz Omori <[email protected]> wrote:
> 
> Thanks. I did that but it appeared to me that was for #2 above. Are you sure 
> I can use that mechanism to retrieve the access token BEFORE even accessing 
> the Petstore JSON?
> 
> Regards,
> Luiz
> 
> On Mon, Nov 28, 2016 at 12:11 PM, tony tam <[email protected] 
> <mailto:[email protected]>> wrote:
> Take a look at http://petstore.swagger.io <http://petstore.swagger.io/>, 
> which uses oauth2 for implicit flow.
> 
>> On Nov 28, 2016, at 9:07 AM, Luiz Omori <[email protected] 
>> <mailto:[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 a topic in the Google 
> Groups "Swagger" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/swagger-swaggersocket/v6UN-av7ITI/unsubscribe
>  
> <https://groups.google.com/d/topic/swagger-swaggersocket/v6UN-av7ITI/unsubscribe>.
> To unsubscribe from this group and all its topics, 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] 
> <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