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 Risposte
0
AWS
Tim_J
con risposta 2 anni fa
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
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande