Skip to Content
0
Sep 02 at 08:42 AM

Resource for Managed Application Router with XSUAA for CAP model

33 Views

Dear Experts,

Could you show me the direction of usage managed app router with XSUAA service? It can be similar basic scenario for tutorial purposes.

I have created/assigned roles and its seems like my service is not returning the roles from XSUAA.

this.on('functionofMine', async req => {
        console.log("roles" + req.user.is("Admin"))
        ....
    })

Here it returns "undefined". Also I am able to access "req.user.id" as described here https://cap.cloud.sap/docs/node.js/authentication#auth-enforcement