rides-python-sdk icon indicating copy to clipboard operation
rides-python-sdk copied to clipboard

Problem with AuthorizationCodeGrant (auth_flow.get_authorization_url())

Open si3mshady opened this issue 7 years ago • 0 comments

The call to AuthorizationCodeGrant does not seem to work: The Authorization url that I generate following instructions on
https://developer.uber.com/docs/drivers/tutorials/api/pythonelf.auth_flow =

AuthorizationCodeGrant(self.client_id,self.scope,self.secret,self.redirect) self.auth_url = self.auth_flow.get_authorization_url()

returns a string as follows https://login.uber.com/oauth/v2/authorize?scope=h+i+s+t+o+r+y&state=XpHSFELXll499LqbJUCFhScbIxm3XhZm&redirect_uri=http%3A%2F%2Flocalhost&response_type=code&client_id=<redacted_client_id>

Instead of what I receive when I access web interface and it works correctly https://login.uber.com/oauth/v2/authorize?response_type=code&client_id=<redacted_client_id>&scope=history&redirect_uri=http://localhost

si3mshady avatar Jan 06 '19 20:01 si3mshady