Antoine Carpentier
Antoine Carpentier

Reputation: 141

Forge Tutorial does not return any hub

I'm trying to create a basic Forge App that will return the project and model GUIDs for a few of my 360 models. I downloaded, configured per the directions and ran the sample from GitHub (Here) however when I log in I'm greeted with an empty list of hubs (despite the app being authorized in my BIM360 account).

View from my app

When using the Bim 360 Reports however, I do see all my hubs (even without authorizing the app).

View from Bim360Reports

Any idea what could be causing the sample code provided by Autodesk to fail to return any of my hubs? I can't see any errors in my Visual Studio output.

Thanks!

EDIT:

Thanks Eason Kang for your reply, however I'm confident something else is at play here.

I deleted the apps I had registered on the BIM 360 admin account and started from scratch (with screenshots).

Here is my app on the Forge portal:

Forge app You can see its Client ID is TU6gQp3dw7LD4AuO8Nx45h1hefFAEOrG.

On the admin B360 account, I created a new integration with that Forge Client ID: B360 Admin [side note, I do not understand the purpose of the account ID provided here, maybe that's the key to my issue?]

As you can see, this newly created app is the only one activated. I do not have any other app allowed, so the Visual Report app has no permission.

App List

Now on Visual Studio, I changed the web.config file to match my Forge app's data.

Visual Studio

And despite all of that, my app has no access to my hubs while the Visual Reports app can see everything.

Comparison

So am I doing something very wrong, or is something else going on here?

Thanks

Upvotes: 0

Views: 317

Answers (1)

Eason Kang
Eason Kang

Reputation: 7070

That is impossible to access your hubs without setting the custom integration in your BIM360 Account Admin. You might have provisioned the client id E4d9h5i4nQhrtQCCDPSctLBSyRcKrQCv of the BIM360 Reports in your BIM360 Account Admin some days ago, but you forgot it...

enter image description here

Please follow the instructions here to provision your own client id by creating a custom integration with your client id in your BIM360 Project Admin page.

https://forge.autodesk.com/en/docs/bim360/v1/tutorials/getting-started/manage-access-to-docs/

Upvotes: 1

Related Questions