Can't add custom Forge integration with Document Management to BIM 360 account - autodesk-forge

I have an issue with access integration of Forge and BIM 360.
This account has paid Docs license and Forge paid tokens.
The forge app was created.
All the 11 services are activated in the Forge app.
When I click on adding integration it shows me this window.
Custom integration options
But there should be “Document Management” checkbox also, right?
Now I have "BIM 360 Account administration” checkbox only
I’ve tried to call endpoints anyway.
So I can access projects without a problem using this endpoint. It works ok.
https://aps.autodesk.com/en/docs/bim360/v1/reference/http/projects-GET/
But if I want to get files from the project and the specific folder it gives me an 403 error
https://aps.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-folders-folder_id-contents-GET/
Example of returned json
{"jsonapi":{"version":"1.0"},"errors":[{"id":"74dadd7c-2191-471c-8e42-c4ca2af30ab1","status":"403","detail":"Forbidden"}]}
I've expected this endpoint work and return me content of the specific folder of the project
https://aps.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-folders-folder_id-contents-GET/

If you are on an enterprise plan and the Apps or Custom Integration features are not enabled, send an email to bim360appsactivations#autodesk.com to request access
Ref: https://knowledge.autodesk.com/support/bim-360/learn-explore/caas/CloudHelp/cloudhelp/ENU/BIM360D-Administration/files/About-Account-Admin/GUID-0C83B441-C611-4574-8DA0-45D5CFC235FA-html.html

Related

How can I use Autodesk Forge Viewer API for my web application?

I want to use Autodesk forge for my web application that allows my clients to save their model files and view them online. However, the problem I am facing is that the viewer is not unique for the clients as it runs on a client secret key. So, once I upload any model in the forge viewer, it appears to all the clients who are using it. So, how can I make sure that I only get the viewer that just opens the models that are present in the project of the client? Is there any way by which I won't have to use the access key so that the models do no get saved up alongside the viewer?
You have to implement user authentication and keep their files separate (e.g. separate buckets named ) - or at least know who should have access to what.
Authentication could be based on an Autodesk account as well if you wanted. Anyone can have such a thing for free.
I hope you are keeping the client secret on the server so the clients don't have access to it and only pass to the client an access token with scope viewables:read only - that could not be used e.g. to list the contents of buckets - see e.g. https://learnforge.autodesk.io/#/tutorials/viewmodels

How to embed Autodesk Forge model viewer into a website?

I have created a web application for viewing models using the AutoDesk Forge Viewer, and I want to be able to add this onto a website. I used this tutorial: https://learnforge.autodesk.io/#/tutorials/viewmodels (using node.js for the language option).
The goal is to have the user access the viewer application from the website. I have been using VS code live server for testing. However, when I link the page that has the viewer into my own website, the viewer does not load the buckets or allow for creation of new buckets. It is just stuck on a loading symbol like below:
[Loading screen][1]
Could I please have the following questions answered:
What is the proper way to embed this application onto a website in the manner I have described above?
What part of the code controls where the buckets are loaded in?
Thank You.
[1]: https://i.stack.imgur.com/4Xlfv.png
LearnForge tutorial is an example on how to work with Forge API. As a web app, it depends on how the developer(you) designs the user interface, workflow, and data management.
e.g. you can remove the panel of bucket & object lists ,keeping the viewer only in the UI. while you will need to design how to provide the object id (urn) which will be loaded in the viewer. Normally, you would need to setup your own users management, logging process etc, and set your own user permission. Then the user logs in, the web app lists all files (objects) he has permission to check, and when one file is selected, get the urn and load the model in Forge Viewer.
if the end user of your app is BIM360 users, you could take advantage of BIM360 data management workflow, which follows the same permission specified with BIM360. Then the other tutorial will be a good start.
https://learnforge.autodesk.io/#/tutorials/viewhubmodels
In any case, the workflow and UI are defined by yourself. I hope this explains. If you have any further questions that need a meeting call, please feel free to check the calendar of our team:
https://calendly.com/autodeskforge

Upload models to BIM360 Design, not BIM360 Docs

I'm able to successfully batch upload Revit models to BIM360 Documents (and version them, as well). However, my main goal is to be able to batch upload models to BIM360 Design as our day-to-day (pre-published) design models.
It appears that instead of using type items:autodesk.bim360:File that I should be using items:autodesk.bim360:C4RModel. However, I keep getting "The client_id is not whitelisted for schema items:autodesk.bim360:C4RModel." Is there a way to provision my app to access that?
As a user, I have admin rights to BIM360 Docs, so I don't think it's an individual rights issue.
Thanks!
It’s not possible for you to upload “cloud” models with a
Forge app. It can only be done with a Revit Addin today.
Unfortunately, Forge DM API doesn't support enabling C4R model currently. However, you can do that with Revit API with Revit desktop, see here for the details: https://thebuildingcoder.typepad.com/blog/2019/11/initiating-bim360-collaboration-and-linking.html#2

Microsoft Identity Platform

I have two web apps that need to be SSO enabled. How do I do that in Microsoft Identity platform?. Is there a way to generate two access and refresh token from MSAL and then give access to the API's in Azure AD?
Start by reading through the documentation for Microsoft identity platform and then try some of the samples. Here is a link to the web app samples which will sign-in users but also have incremental tutorials to call Microsoft Graph or your own web api.

What is google developer console and project

I need an access to google drive sdk to store and retrive data from web-server but when I tried to get the access, as explained in google drive quick start guide, It says to create project, why is that. and How exactly getting access to drive sdk works?
Google provides a mechanism to allow third party apps to access its APIs. The first step of the process requires you to register the application to Google, eg. so it can bill you for certain access volumes. Your app will be accessing the information, eg the Drive files of end users. They will need to grant permission to your app, so this is a second reason why the app must be registered.
In Google parlance, your app is known as a "Project" and you will "create" (ie. register) your project at the Google Cloud Console.