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.

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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠