# Cognito federated identities

**URL:** <https://forum.serverless.com/t/cognito-federated-identities/3829>\
**Category:** Serverless Framework\
**Created:** [February 22, 2018, 9:17am UTC](https://forum.serverless.com/t/cognito-federated-identities/3829 "2018-02-22T09:17:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiranmysore](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@kiranmysore](https://forum.serverless.com/u/kiranmysore)\
**Post date:** [February 22, 2018, 9:17am UTC](https://forum.serverless.com/t/cognito-federated-identities/3829/1 "2018-02-22T09:17:27Z")

</div>

Hi,  
I am trying to create a web app (React) which will be hosted in S3 and uses API Gateway, Lambda (Nodejs, Javascript) and DynamoDB.  
I am planning to use AWS Cognito and Cognito federated Identities.  
I two flow to the app:

1. UnAuthenticated
2. Authenticated  
User from both flows must have access to other services (Gateway, DynamoDB, Lambda) with an only small difference for Authenticated user.

I am not able to find any good examples for using Cognito Federated Identities for Unauthenticated Identities and how to configure them.  
I would be of great help if anyone can provide info on this.

Thanks in advance!!

cheers  
Kiran

---

<div class="post-metadata">

**Author:** ![buggy](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/buggy/32/177_2.png) [@buggy](https://forum.serverless.com/u/buggy)\
**Post date:** [February 22, 2018, 11:53am UTC](https://forum.serverless.com/t/cognito-federated-identities/3829/2 "2018-02-22T11:53:18Z")

</div>

Hi Kiran

Have you looked at [AWS Amplify](https://github.com/aws/aws-amplify)? It makes it really easy to do exactly what you just said. There are also some videos on YouTube I can recommend.

Be warned that it’s still early days for the project so things may change quickly. Also, while Mobile Hub makes it really easy to set everything up you may need to provision resources independently. For example: I had to setup Cognito User Pool and Federated Identity manually through the console to get email logins without usernames workings.

Rich

---

<div class="post-metadata">

**Author:** ![kiranmysore](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@kiranmysore](https://forum.serverless.com/u/kiranmysore)\
**Post date:** [February 22, 2018, 1:27pm UTC](https://forum.serverless.com/t/cognito-federated-identities/3829/3 "2018-02-22T13:27:35Z")

</div>

Hi Rich,  
I will have a look at it. Thanks for the links.  
Also, I am still looking into the Cognito federated identity examples for my case as you mentioned AWS amplify is still in early days.  
Thank you!

Kiran

---

<div class="post-metadata">

**Author:** ![Java1Guy](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/java1guy/32/155_2.png) [@Java1Guy](https://forum.serverless.com/u/Java1Guy)\
**Post date:** [March 2, 2018, 7:06pm UTC](https://forum.serverless.com/t/cognito-federated-identities/3829/4 "2018-03-02T19:06:41Z")

</div>

I used this project/page as a guide in doing that exact thing a couple months ago: [https://serverless-stack.com/](https://serverless-stack.com/)

I didn’t end up completely testing the federated identity part, since i didn’t have a good provider and the requirement went away (beyond User Pools)… but in starting to test it, i did make a developer account at [salesforce.com](http://salesforce.com) to test as an identity provider.

HTH, Mark
