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?
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?
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!
<span>scopes</span>: [{ <span>name</span>: <span>"document:documents:read"</span><span>, </span><span>comment</span>: <span>"default template" </span>}<span>,<br></span> { <span>name</span>: <span>"document:documents:write"</span><span>, </span><span>comment</span>: <span>"default template" </span>}<span>,<br></span> { <span>name</span>: <span>'document:documents:delete'</span><span>, </span><span>comment</span>: <span>'CRUD methods for Doc workflow' </span>}<span>,<br></span>]<span>,</span>