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
已提问 7 年前449 查看次数
1 回答
1
已接受的回答

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
已回答 7 年前
profile picture
专家
已审核 4 天前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则