Bubble OAuth2 User-Agent Flow for Plugins

Hi all,

I’m struggling with setting up a Bubble OAuth User-Agent Flow in a way that is suitable for a plugin and wondered if anyone on the forum has already overcome my issues.

How do I run only the OAuth User-Agent Flow as a standalone action? Or if that is not possible can I pass the App Id, Client Secret captured in the plugin page and the token captured from the oAuth flow as parameters in the API Call? This way I can have an API Call action to obtain the token needed.

Here is a rough example of what I’d like to do:

Ultimately I’m trying to allow get my plugin to be installed on an app and then be used to authorize the API and obtain the token and save it in the DB for other (separate) API calls outside of this plugin.

Let me know if anyone has any insight.

Thanks,

Phill

Bubble user-agent auth will do everything for you. If I remember, you will have a link in the auth section to authorize the API in plugin Builder.

Use

this authentication workflow if you want to use the API Connector.

But if you want to write your own code to get the access token and other stuff. You need to write everything from scratch in the element sections.

Ankur@ Nocodetalks
Looking for a Bubble Coach? Checkout here

I’ve decided there isn’t enough flexibility with the built-in API actions for my use case so i’m going to build the m manually.