service account - unable to get projectId #2013
Replies: 2 comments 3 replies
-
@spowell-216 the However, for now you will need to add the Visualization API Association. This will add a |
Beta Was this translation helpful? Give feedback.
-
@calebmshafer thanks for the quick response. I added the Visualization API to MyApp and in code added "itwinjs" to the scope in code, but still getting the same error. I console.log() the config just to make sure and this is my new scope: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an app registered in developer.bentley.com under myApps as type "service". It has been granted "Team Member" permissions to our iModelHub and as of 3 days ago, it worked just fine.
I went into developer.bentley.com and saw it was getting a warning that no APIs were registered, so I registered the Digital Twin Management APIs and preformed the upgrade when prompted.
The previous scopes were: "imodelhub urlps-third-party context-registry-service:read-only".
now the new scopes are: "storage:read library:read realitydata:read imodels:read library:modify imodels:modify storage:modify".
I can connect and get a valid AuthorizationRequestContext, but fails when trying to get the Project By Name
const project: Project = await new ContextRegistryClient().getProject(context, { $select: "*", $filter: 'Name+eq+' + this._agentConfig.projectName });
The following error is thrown: "LoginFailed: Authorization scheme is not supported".
iTwinjs ver: was on 2.16.1, updated to 2.19.3 with the same results.
I have tried registering a new application with type service and Digital Twin Management APIs assigned.
what new steps am I missing from the changes made over the weekend?
Beta Was this translation helpful? Give feedback.
All reactions