Forum Academy Marketplace Showcase Pricing Features

OAuth2 Two Legged Authentication for Autodesk Forge APIs

Hi Bubblers! Hope you are doing nice.

I have been experiencing Bubble for the last couple of days and I am amazed with its capabilities, pretty nice and neat way to get people who dont know so much about programming involved in some app creation. That being said, I am one of those “no-so-experienced” type of guys out there, but want to learn. I have been doing a lot of research about OAuth2 and I pretty much know the core concepts behind it, I guess. The thing is that I am trying to stablish some connection between my Bubble app and Autodesk Forge APIs via the Bubble’s API Connector plugin. They have like 7 APIs and some require Two Legged OAuth2 while some others require Three Legged OAuth2. As far as I concluded I need to set up and OAuth2 Custom Token for Two Legged Authentication while an OAuth2 User Agent Flow for Three Legged Authorization. I started with OAuth2 User Agent Flow having some kind of luck. But I have been trying with the OAuth2 Custom Token for the last couple of hours without any kind of luck.

Here is the documentation with a sample of the workflow to get the Two Legged Authentication:

The Token Endpoint is:

I want to do a GET call to get a list of what they call “Buckets” inside Autodesk Forge, here is the reference:

Here is what I have done so far without any kind of luck, it always gets me a very large error message after making the call:

And here is the call setup:

Bubble 2

The last thing you should know is the end user its not going to have to authorize anything, the account is mine and I can stablish a secure connection by directly providing my client’s numbers.

Could you please help me setting this the right way? And thank you so much!

Hey @juan.hoyos4 did you ever manage to sort this?

I’m making my own foray into OAuth2.0 & finding it really tricky to begin with…