AWS Amplify and AWS Cognito: Assignment of users to multiple roles

0

I have an Angular application in which users should be assignable to multiple roles. In Cognito, it appears as though groups take the place of roles, but I don't see how to assign users to multiple groups/roles. 1) Is that possible, and if so, how? 2) Is it possible to programmatically assign users to roles? And 3) is role assignment implicitly verified on each API request? Thanks.

AWS
已提問 2 年前檢視次數 1350 次
2 個答案
0
AWS
Tim_J
已回答 2 年前
0

It's not that Cognito uses groups instead of roles, it's that you can use Cognito to map roles to group memberships based on the claims present in the id token that's generated upon authentication. See here for more.

profile pictureAWS
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南