Autodesk-Forge / forge-api-nodejs-client

Forge Node.js SDK: Provides Node.js SDK to help you easily integrate Forge REST APIs into the application
Apache License 2.0
121 stars 87 forks source link

`data:read:<URN_OF_RESOURCE>` auth scopes are not supported #95

Closed andrea-lisa closed 1 year ago

andrea-lisa commented 1 year ago

All OAuth2 clients (two-legged, two-legged-v2, three-legged) do not support scopes with values of type data:read:<URN_OF_RESOURCE>.

Executing the following code

new ForgeSDK.AuthClientTwoLegged(
  FORGE_CLIENT_ID, 
  FORGE_CLIENT_SECRET, 
  ['data:read:urn:adsk.objects:os.object:my_bucket/my_object'], 
  false
);

results in the following error:

data:read:urn:adsk.objects:os.object:my_bucket/my_object scope is not allowed