# AWS Cognito Token Delegation

**URL:** <https://community.auth0.com/t/aws-cognito-token-delegation/7283>\
**Category:** Get Help\
**Tags:** api-authorization, aws, lambda, cognito, auth0\
**Created:** [June 27, 2017, 3:22pm UTC](https://community.auth0.com/t/aws-cognito-token-delegation/7283 "2017-06-27T15:22:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathan1](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@nathan1](https://community.auth0.com/u/nathan1)\
**Post date:** [June 27, 2017, 3:22pm UTC](https://community.auth0.com/t/aws-cognito-token-delegation/7283/1 "2017-06-27T15:22:38Z")

</div>

I’m using AWS Cognito User Pools with API Gateway and Lambda.  
I would like to use the Cognito User pools federated identity providers to use Auth0 as the IdP. [User pool sign-in with third party identity providers - Amazon Cognito](http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation.html)

The question I have is if I setup a SAML IdP in my Cognito user pool how do I get a common cognito token which I can use for all API gateway requests. The auth0 /delegation endpoint only seems to support IAM.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:54am UTC](https://community.auth0.com/t/aws-cognito-token-delegation/7283/2 "2018-03-02T05:54:59Z")

</div>


