I get the following error, supplying the same username and password used to generate this token allows me access via the BIM 360 site.
Error calling GetFolder: {"jsonapi":{"version":"1.0"},"errors":[{"id":"00ec6eb7-
697c-47b4-b66e-164f0716fc83","status":"403","detail":"Forbidden"}]}
You probably don't have your account registered for access to BIM 360 Data from DM API. Please follow the steps in this blog post to obtain the access required.
https://fieldofviewblog.wordpress.com/2017/01/19/bim-360-activating-api-access-to-docs/
Related
I'm trying to create a lti 1.3 integration in Brightspace (POC), and I was able to get to the point where the tool endpoint is launch. At this endpoint I'm trying to get access token in order to get the membership data, so I send the request (for the access token) with the relevant scope and all the credentials with no success. I also added to the url address the relevant parameters as the documentation shows.
I think that at this point I should get the access token with no problems, because when I was trying to integrate with moodle I successfully received the access token back. I know there is a standard in all LMSs but Is there any specific adjustment to integrate with Brightspace.
The scope includes data:write data:create, and accessToken can be obtained. But when uploading files through Api, it returns 403 and the message prompt: "No write access".
I checked it according to the document, which means: "The Authorization was successfully validated but permission is not granted. Don't try again unless you solve permissions first.".
I'm not sure if there is something wrong with the permission when get the accessToken, or because the free user has no permission to call the upload file interface. But it worked normally before.
you are correct the scope can be data:write or data:create with uploading file. The most possibility is you are trying to uploading to a bucket which is NOT created by this Forge app. e.g. you may have a few Forge apps (different client id and secret). The bucket may be created by the other Forge app, so this app cannot write the data. Or even the bucket is created by other customers, while you thought you are the owner. Please GET:Buckets firstly to check which buckets available with this app (client id + secret) :forge.autodesk.com/en/docs/data/v2/reference/http/buckets-GET
we are generated client id and secret id. And also we have got access token using Internal Token.
when running the project we can view Revit file which we are uploaded using forge bucket.
Then again are trying to get all elelments (Building,floor,rooms,equipments etc)in Revit model using API.
using this Link:https://forge.autodesk.com/en/docs/model-derivative/v2/reference/http/urn-metadata-GET/
we have using API in onDocumentLoadSuccess this event.
we are passing url:https://developer.api.autodesk.com/modelderivative/v2/designdata/:urn/metadata
headers :'Authorization': 'Bearer ' + access_token.
In this we are passing urn,access_token parameters also fine.
But we face "Token does not have the privilege for this request" error.(we have already have access token through API.But for the second time we face the error)
How to solve this, please help me on this.
Note that the different endpoints provided by the Forge services require a specific "scope" that the access token must be generated for. For example, according to the GET :urn/metadata docs, this endpoint requires the the access token to be generated with the "data:read" scope.
Also, note that properties of a design processed by the Model Derivative service are actually obtained by a different endpoint - not using GET :urn/metadata, but using GET :urn/metadata/:guid/properties.
I get an issue when I call endpoint Users import:
{fault.name} - The client_id specified does not have access to the api product
see attachment
note: when I use endpoint v1, I don't have problems. Also I use 2-legged token and can access anothers endpoint (ie: Add a project admin)
Please help me out of this problem.
I mean v2 of endpoints where I can't access (see attachments)
Best,
image_1
image_2
The reason mainly could be the following:
I don't think there is a V2 of BIM 360 API, or because you probably do not have an enable integration for the use of the BIM 360 API. You can check this post in order to get the necessary steps to request such access.
https://fieldofviewblog.wordpress.com/2017/08/18/no-custom-integrations-tab/
Here you can also read more about why do you need such access and why this specific API does not work in the same way as the other Forge services.
https://fieldofviewblog.wordpress.com/2017/01/17/bim-360-and-forge-overview/
I am trying to get access token using WebAuthenticationCoreManager for my native UWP application (Windows 10), am using https://www.onenote.com as the resource.
Before requesting for the token I have associated my app with azure and using client id generating from it.
I have also provided necessary delegated permissions for office365api to my application on azure.
I am getting error with code AADSTS65005 with a message "he request has failed because the client has not specified this resource in its requiredResourceAccess list".
Am I missing some steps that needs to be followed?delegated permission snapshot
The resource URI is https://onenote.com/
Please try with that.