Use Cognito as primary identity provider for non-AWS-hosted applications?

0

Hello,

Is it possible to use Cognito as primary identity provider for non-AWS-hosted applications?

AUTHENTICATION: It seems to be possible to do authentication via the Cognito User Pools. I see it returns an access token after authentication: http://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-with-identity-providers.html

DOWNSTREAM AUTHORIZATION: Assuming trust with the downstream non-AWS-hosted service provider, I'm not sure how any authorization could happen within this service provider considering I don't see any standard token (SAML...) being provided by Cognito. Any way to forward a standard token to a downstream non-AWS-hosted service provider?

Thanks!

AWS
posta 7 anni fa449 visualizzazioni
1 Risposta
1
Risposta accettata

You can accomplish custom authorization in your downstream apps by using the Cognito User Pool Groups. You can place your users into groups on the Cognito side. The JWT ID Token will contain the role values associated with the user in the cognito:roles claim. You will then grant the appropriate authorization level based on the role that the user is assigned.

Here's more info: http://docs.aws.amazon.com/cognito/latest/developerguide/role-based-access-control.html

AWS
con risposta 7 anni fa
profile picture
ESPERTO
verificato 4 giorni 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