Skip to Content
0
May 15, 2020 at 11:04 AM

SAP CAP application - add authorization role for endpoint

494 Views Last edit May 15, 2020 at 11:05 AM 2 rev

Hello,

I am working on a cap application, and I need to add authorization role for only one specific endpoint.

So far I added the authorization role in xs-app.json (approuter module) file for the endpoint and I defined the roles, role-templates in xs-security.json file, but there is no change, the endpoint is still not secured, I can access it without having the role assigned to my user.

Could you recommend any guides or tutorials to achieve this?

Thank you.