Closed ghost closed 9 years ago
Not sure if this is possible to do on our end since we need the end-user to login via uber. What do you guys think? @r-medina @sjkaliski
In my opinion there are three options:
I'm leaning towards the second option. Seems to be pretty standard across other api wrappers. https://github.com/garyburd/go-oauth is a good starting point.
Sounds good. What do you mean by taking the oauth configuration as an argument. Are you referring to the access_token (in which case the process is not abstracted) or something else?
@asubiott wanna knock this out sunday?
Currently, before a client can use the user info endpoints (history and profile) they must go through a three step authentication with uber (https://developer.uber.com/v1/auth/#oauth-2-0) which results in them receiving an access token which they use to access these endpoints.
This issue is to figure out a way to abstract/hide this from the client, maybe by changing some construction parameters and authentication logic being handled in the construction.