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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ