Yes, i see plenty on defining an API, there is a lot on generating code of 
the back of the definitions but not much reference to consuming it with 
oauth authentication.

I'm relatively new so my be missing something obvious but I am expecting to 
see something to manage the Oauth (1 or 2) workflow. e.g. for v2: redirect 
the user to the authorisation url and get the access token on the callback. 
The any further calls can use the token (whilst it's still valid).

>From what i see in the generated documentation (from Google Fit Swagger 
Yaml) it expects the Access Token to be set in the code like this:

  # Configure OAuth2 access token for authorization: Oauth2
  swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
 
To me it implies that you have to handle authorisation and authentication 
yourself but it doesn't say that... hence the question... 

Matt


 


On Tuesday, 7 March 2017 22:04:15 UTC, Ron wrote:
>
> Have you browsed through swagger.io to get basic information?
>
>  
>
>  
>
>  
>
> *From: *<[email protected] <javascript:>> on behalf of Matt 
> Thompson <[email protected] <javascript:>>
> *Reply-To: *"[email protected] <javascript:>" <
> [email protected] <javascript:>>
> *Date: *Tuesday, 7 March 2017 at 13:53
> *To: *Swagger <[email protected] <javascript:>>
> *Subject: *Swagger Client and Oauth (and why is there no search on this 
> forum!?)
>
>  
>
> Hi, 
>
>  
>
> I am getting my bearings with Swagger, it looks like an external resource 
> to share data. 
>
>  
>
> I'm looking to understand more about the Oauth set up with the swagger 
> client (python specifically).
>
>  
>
> Can anyone point me to any documentation, blogs or the like?
>
>  
>
> Thanks,
>
> Matt
>
>  
>
>  
>
>  
>
>  
>
>  
>
> -- 
> 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] <javascript:>.
> For more options, visit 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