cancel
Showing results for 
Search instead for 
Did you mean: 

Can't access fiori app after deployment

David21
Explorer
0 Kudos
247

Hello everyone,

I'm using CAP Node.js(odata v4), and have created a frontend using fiori elements. I am also using a Managed app Router. I was able to deploy it successfully to cloud foundry and it is showing in the HTML5 Applications tab in BTP, it was working fine before authentication was added. But after I added the authentication it gives a 403 forbidden error when I press go on the list report page.

student.png

 This is how my service file and xs security looks like:

serv.png

sec..png

I have also added the Admin role to the user and logged out of the account, and then signed in again so that the roles can be set but it still isn't working.  When Only the 'authenticated user' authentication in applied on the service or entity in service file it works fine, the problem occurs only I when use the @requires: 'Admin' authentication on the entity.

roles.png

 

vitaly_kozyura
Advisor
Advisor
0 Kudos

Please check if the documentation helps: https://cap.cloud.sap/docs/guides/security/authorization

Also the tutorial can be helpful: https://developers.sap.com/group.btp-app-cap-deploy.html

View Entire Topic
vitaly_kozyura
Advisor
Advisor
0 Kudos

see above

David21
Explorer
0 Kudos
Appreciate the answer, It wasn't picking up the roles before. It's working now after I logged in again today.