2024 Dec 30 10:07 AM - edited 2024 Dec 30 10:34 AM
Getting below error while starting cap application given in the golden path of capire.
Help me where should add this role ? and what user it is asking for ?is it my BTP sub account/S4Hana DB user ?
what password I should enter in the popup like shown in the image..
[cds] - Error: Forbidden
at requires_check (/home/user/projects/incident-management/node_modules/@sap/cds/lib/srv/protocols/http.js:54:32)
at Layer.handle [as handle_request] (/home/user/projects/incident-management/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/user/projects/incident-management/node_modules/express/lib/router/index.js:328:13)
at /home/user/projects/incident-management/node_modules/express/lib/router/index.js:286:9
at Function.process_params (/home/user/projects/incident-management/node_modules/express/lib/router/index.js:346:12)
at next (/home/user/projects/incident-management/node_modules/express/lib/router/index.js:280:10)
at http_log (/home/user/projects/incident-management/node_modules/@sap/cds/lib/srv/protocols/http.js:42:59)
at Layer.handle [as handle_request] (/home/user/projects/incident-management/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/user/projects/incident-management/node_modules/express/lib/router/index.js:328:13)
at /home/user/projects/incident-management/node_modules/express/lib/router/index.js:286:9 {
code: 403,
reason: "User 'siva.sankar.reddy.indireddy@sap.com' is lacking required roles: [support]",
user: User { id: 'siva.sankar.reddy.indireddy@sap.com', roles: {} },
required: [ 'support' ]
Request clarification before answering.
You can add local users for testing as given in https://pages.github.tools.sap/cap/golden-path/develop/add-auth/add-authorization#add-users-for-loca...
In package.json, add
"cds": { "requires": { "[development]": { "auth": { "kind": "mocked", "users": {"alice": { "roles": ["support"] }, "bob": { "roles": ["support"] }} } } } },
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.