Exposing the Data API with Oauth2

Hi all,

I’m trying to expose my database via Data API with the Oauth2 workflow. In the docs, it says:

Privacy rules are applied in the context of the authentication you’re using. If you’re making calls with an API Token, you will be reading the data as an admin user and can access all fields for a given thing. If you’re making a call using a token obtained via a sign in call, or via the OAuth 2.0 flow, what you can see and do via the API is limited by the rules in the Privacy section of the data tab. This lets you safely share your API with your users without given them more access than they should have.**

But, I can’t find any examples of setting up the OAuth 2.0 flow.

Any ideas?

Bubble have an alternative to oAuth2:
https://manual.bubble.io/core-resources/api/introduction#authentication
Check the second option to authenticate using a signup workflow.

Thanks @Jici!

I just figured it out.

The paths I was looking for are:
Authorization URL: [App-Name]/version-test/api/1.1/oauth/authorize
Access Token URL: [App-Name]/version-test/api/1.1/oauth/access_token

1 Like

Just in case, related documentation is here
https://manual.bubble.io/help-guides/working-with-data/authenticating-users#using-your-bubble-app-as-an-sso-provider