cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cannot use DocumentStore service! How to authenticate my app?

Radoslaw_Szulgo
Dynatrace Guru
Dynatrace Guru

When I try to read or write something from the DocumentStore I get the error:

 

Authentication failed! Please check if the scopes you specified are valid and if the clientId is able to request all of those scopes.

 

How to solve this?

Senior Product Manager,
Dynatrace Managed expert
2 REPLIES 2

dirk_wall
Dynatrace Helper
Dynatrace Helper

Hi Radek,

Could you please double-check if you have the necessary scopes defined in the app.config.ts (config -> app -> scopes) of your app and if your user has the right permissions? You should look out for the scopes document:documents:read and document:documents:write.

Cheers

Correct! That's how it should look like!

scopes: [{ name: "document:documents:read", comment: "default template" },
{ name: "document:documents:write", comment: "default template" },
{ name: 'document:documents:delete', comment: 'CRUD methods for Doc workflow' },
],
Senior Product Manager,
Dynatrace Managed expert

Featured Posts