Cognito vs Identity Center (SSO)


I am building a web application. Customers should have a valid AWS account to onboard. Each customer could be a whole corporate on their own with their own Identity provider. The application should authenticate users of each Customer's org and authorize their access to certain APIs within my application. The application should also be able to run automation in the customer's AWS account by assuming certain IAM role.

Looking at Identity solutions from AWS, I see native IAM, Cognito, and SSO.

Native IAM doesn't present the identity of the user and their group membership to my application.

Cognito seems to fit my use case. I can provide the customer with Cloudformation template to run in their account to prepare things: Cognito user pool, certain group name that my application looks for, certain IAM roles for my application to assume, and Cognito Identity pool to exchange the user's authenticated Identity with IAM temp creds to run automation in their account within certain permissions scope. The customer can integrate Cognito with their own IDP to have centralized user and group management.

Does this solution look sane? Does SSO provide better integration for my application? If yes, does SSO allow me to provide the customer with a Cloudformation template to configure their SSO before they can onboard to my application?

Related Q prior to rePost era: - but it is not answered yet.

1 Answer

In regard to your use-case, cognito user pool would indeed be a better option, as you would have access to certain security feature such as Advance security feature, integration with WAF, customizing the login page, which would provide you an edge with your web application. That been said, If you have a user-base in AWS SSO and would like to use that, you may create AWS SSO as SAML provider in AWS Cognito

profile pictureAWS
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions