- Newest
- Most votes
- Most comments
Yes, AWS Cognito can act as a SAML identity provider for Amazon Connect, enabling single sign-on from your application to the Amazon Connect agent workspace without requiring a separate login.
Amazon Cognito user pools support SAML 2.0 and can be configured to act as a SAML identity provider for your Amazon Connect instance. This allows your users to authenticate once through Cognito and then access Amazon Connect without having to provide credentials again.
To implement this solution:
-
Configure your Amazon Connect instance with SAML 2.0-based authentication (which you've already done).
-
Set up your Cognito user pool as a SAML identity provider:
- In your Cognito user pool, configure it to support SAML assertions
- Ensure the user attributes in Cognito map correctly to the attributes Amazon Connect expects, particularly the RoleSessionName SAML attribute which must match the user name in Amazon Connect
- Create an identity provider in IAM to enable SAML federation between Cognito and AWS:
- In the IAM console, create a SAML identity provider
- Upload the SAML metadata document from your Cognito user pool
- Configure the trust relationship between Cognito and Amazon Connect
-
Configure the relay state and authentication response in your Cognito setup to direct users to the Amazon Connect agent workspace.
-
For the "Agent View" button in your application, implement the flow to:
- Generate a SAML assertion from Cognito
- Direct the user to Amazon Connect with this assertion
- Amazon Connect will validate the SAML assertion and automatically log the user in
When implementing this solution, ensure that:
- The user names in Cognito match exactly with the user names in Amazon Connect
- The SAML assertion contains all required attributes for Amazon Connect
- The session duration is properly configured (Amazon Connect sessions expire after 12 hours)
This approach allows you to maintain a single authentication system using only AWS services without requiring any external identity providers like Okta or Microsoft Entra ID.
Sources
Configure SAML with IAM for Amazon Connect - Amazon Connect
Using SAML identity providers with a user pool - Amazon Cognito
Identity providers and federation into AWS - AWS Identity and Access Management

AWS Cognito cannot act as a SAML IdP for Connect. Cognito only generates JWT tokens, not SAML assertions.