on 08-15-2022 1:26 PM
Dear SAP professionals,
I created a Fiori Elements app using the "Fiori: open app generator". I connected this app to the CAP service, which requires a specific user role to use:
service CoolService @(requires : [
'cool_admin'
]) {
The xs-app.json file looks like this:
{
"welcomeFile": "/index.html",
"authenticationMethod": "route",
"routes": [
{
"source": "^/api/(.*)$",
"target": "/api/$1",
"destination": "app-srv",
"authenticationType": "xsuaa",
"csrfProtection": false
},
{
"source": "^/resources/(.*)$",
"target": "/resources/$1",
"authenticationType": "none",
"destination": "ui5"
},
{
"source": "^/test-resources/(.*)$",
"target": "/test-resources/$1",
"authenticationType": "none",
"destination": "ui5"
},
{
"source": "^(.*)$",
"target": "$1",
"service": "html5-apps-repo-rt",
"authenticationType": "xsuaa"
}
]
}
I placed this app to the launchpad service and gave myself this role (cool_admin) in SAP BTP, so I will be able to use the app. I am able to see it in the launchpad and open it, however when the app sends a "read" event to the service, I get an authorisation error:
Does anybody know, how to fix this issue?
Kind regards,
Vsevolod
Just little hint, before we get crazy, sometimes it is just a browser cache issue, so before digging deeper, just make sure to logout and login again, to make the role assignment become effective.
Apologies if you've already done.
Cheers,
Carlos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.