# Anyone have a working AWS Cognito configuration w/ ouath2, openid or sso?

**URL:** <https://meta.discourse.org/t/anyone-have-a-working-aws-cognito-configuration-w-ouath2-openid-or-sso/123579>\
**Category:** SSO\
**Tags:** openid-connect\
**Created:** [July 21, 2019, 3:27pm UTC](https://meta.discourse.org/t/anyone-have-a-working-aws-cognito-configuration-w-ouath2-openid-or-sso/123579 "2019-07-21T15:27:55Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tunecrew](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tunecrew/32/195327_2.png) [@tunecrew](https://meta.discourse.org/u/tunecrew)\
**Post date:** [July 21, 2019, 3:27pm UTC](https://meta.discourse.org/t/anyone-have-a-working-aws-cognito-configuration-w-ouath2-openid-or-sso/123579/1 "2019-07-21T15:27:55Z")

</div>

I’m trying to integrate Discourse with our existing Cognito UserPool.

Don’t have any IdP or SAML setup in AWS for sso so haven’t gone there.

Tried w/ openid plugin but it Discourse redirects login to the /AUTHORIZE endpoint in Cognito instead of /LOGIN - I know it gets this from the configuration in .well-known, but not sure how this is suppose to work.

Tried w/ oauth2 plugin - I see Discourse calling the /TOKEN endpoint and receiving the JWT back from Cognito, but the /USERINFO endpoint then returns an error, so it doesn’t get beyond that.

Does anyone have a working config they can share - oauth2 seems like the best route but I’m missing something somewhere apparently.

---

_[View the full topic](https://meta.discourse.org/t/anyone-have-a-working-aws-cognito-configuration-w-ouath2-openid-or-sso/123579)._
