cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving User Scopes from req.authInfo in Node.js with XSUAA Authorization

06-23-2024 11:14 AM
poomathi Explorer
990 views 1 comments
0 Likes
SAP Managed Tags
Labels
ApprouterAuthenticationAUTHORIZATONNodejsxsuaa
Subscribe

Hi all,

I have a question about accessing scope information in a Node.js application. Specifically, the 'checkScope' method is used to check whether a specific scope is assigned to a user or not. However, I want to know if there's a way to directly access the scope information from 'req.authInfo' to determine what scopes the user has. How can I achieve that ?

Thank you.

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
SAP Champion
SAP Champion
0 Likes

did you check the req.authInfo in debug mode?