Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS Cognito support #105

Closed
bnfinet opened this issue Apr 14, 2019 · 4 comments
Closed

AWS Cognito support #105

bnfinet opened this issue Apr 14, 2019 · 4 comments

Comments

@bnfinet
Copy link
Member

bnfinet commented Apr 14, 2019

from the #vouch irc channel...

Vouch Proxy is confirmed working with AWS Cognito

oauth.user_info_url must be set with upper case I for oauth2/userInfo

oauth:
  provider: oidc
  auth_url: https://YOURDOMAIN.auth.eu-west-2.amazoncognito.com/oauth2/authorize
  token_url: https://YOURDOMAIN.auth.eu-west-2.amazoncognito.com/oauth2/token
  user_info_url: https://YOURDOMAIN.auth.eu-west-2.amazoncognito.com/oauth2/userInfo
  scopes:
    - openid
    - email
    - profile
@trulyliu
Copy link

How should I configure in AWS Cognito user pool?

@bnfinet
Copy link
Member Author

bnfinet commented Aug 26, 2019

@trulyliu unfortunately I'm only relaying from the IRC channel that AWS Cognito is supported

I wonder if #115 would offer any hint

@trulyliu
Copy link

trulyliu commented Aug 27, 2019

oauth:

Generic OpenID Connect

provider: oidc
client_id: your_app_clientid
client_secret: your_app_client_secret
auth_url: https://yourdomain.auth.eu-west-1.amazoncognito.com/oauth2/authorize
token_url: https://yourdomain.auth.eu-west-1.amazoncognito.com/oauth2/token
user_info_url: https://yourdomain.auth.eu-west-1.amazoncognito.com/oauth2/userInfo
scopes:
- openid
- email
- profile
callback_url: https://vouch.yourdomain.com/auth

config in AWS cognito
enable openid, email, and profile in app settings
app client callback url : https://vouch.yourdomain.com/auth,
logout url: https://vouch.yourdomain.com/logout

Beware the domains settings in config.yml,
it should be yourdomain.com.

This setup works for me.

@michal-rybinski
Copy link

Just wanted to respond but I see that you solved it yourself.
That's pretty much as I have it set up as well, good work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants