11 Dec 2022 06:27 PM - last edited on 21 Apr 2023 08:35 AM by stefan_eggersto
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?
Solved! Go to Solution.
12 Dec 2022 07:13 AM - last edited on 18 Apr 2023 11:50 AM by educampver
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
12 Dec 2022 07:57 AM
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' },
],