-
Notifications
You must be signed in to change notification settings - Fork 267
Description
Hi,
I'm hoping someone can assist me in figuring out why I am receiving the "Grant: missing session or misconfigured provider" error when attempting to integrate AWS Cognito OAuth into my application using the Colyseus.js library Auth module. See https://docs.colyseus.io/authentication/module
From what I can tell, the issue does not see related to Colyseus, but rather lies within Grant. So far, I'm able to get the pop up to log the user into Cognito, however when the the redirect to the callback happens, I get the error mentioned above. I've traced it back to the callback method in request.js (see
Line 57 in 53ffff0
| var callback = ({request}) => ({provider, input, output}) => |
This is my configuration using the Colyseus integration (https://docs.colyseus.io/authentication/module/#oauth-providers-discord-google-xtwitter-etc):
auth.oauth.addProvider('cognito', {
key: process.env.CLIENT_ID,
secret: process.env.CLIENT_SECRET,
scope: ['openid', 'email', 'profile'],
subdomain: 'my-poc-app.auth.us-east-1.amazoncognito.com',
redirect_uri: 'http://localhost:2567/auth/provider/cognito/callback',
});