OAuth with Uber - Basic Use Case
- Users register and login to my App.
- They can book a ride with Uber.
I reviewed the Uber API documentation. The section specific to Authentication with OAuth 2.0 is available here.
I have set up the Bubble API connector:
More about the section marked with a RED box, later in this post.
The user flow for the app is as follows.
-
User register / login
-
User clicks on book a ride (OAuth)
Issue #1: Redirect URI setup in Uber.
For the OAuth process to start, I need to append in redirect URI the bubble User ID like so:
Question 1: After the OAuth connection is set up and working, what should I put as the redirect URI in Uber? I’m guessing it should point to the page and I should completely remove any reference to a user.
Success #1: After setting up the redirect as describe above, and configuring the Bubble API connector, the user is redirected to the Uber login page
Success # 2: Once the user logs into Uber, they are presented with the permission screen.
Success # 3: Once the user clicks on Allow, the control is passed back to the Bubble
Issue #2: I get the following error, see attached error message and log from debugging tool.
I get this error irrespective of whether the checkbox in Bubble API connector is ticked
or not
As per the Uber OAuth documentation, it supports Basic Auth - though I might be confusing two similar but unrelated things. . .
Any help in troubleshooting this issue would be much appreciated!