Multiple user pools with cognito, not working #4649
Unanswered
ntalamdotcom
asked this question in
Help
Replies: 1 comment
-
Hi, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Provider type
Cognito
Environment
package.son:
`{
"name": "t5customerportal",
"version": "0.2.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"@aws-sdk/signature-v4-crt": "^3.66.0",
"@date-io/date-fns": "^1.3.13",
"@emotion/react": "^11.8.1",
"@emotion/styled": "^11.8.1",
"@material-ui/core": "^4.12.4",
"@material-ui/icons": "^4.11.3",
"@material-ui/pickers": "^3.3.10",
"@mui/icons-material": "^5.4.4",
"@mui/material": "^5.4.4",
"@mui/x-data-grid": "^5.6.1",
"@mui/x-data-grid-generator": "^5.6.1",
"@mui/x-data-grid-pro": "^5.6.1",
"amazon-cognito-identity-js": "^5.2.8",
"aws-sdk": "^2.1124.0",
"axios": "^0.26.1",
"classnames": "^2.2.6",
"country-flag-icons": "^1.4.26",
"crypto-js": "^4.1.1",
"date-fns": "^2.28.0",
"material-ui-phone-number": "^3.0.0",
"mui-datatables": "^4.1.2",
"multer": "^1.4.4",
"next": "12.1.0",
"next-auth": "^4.2.1",
"next-connect": "^0.12.2",
"pino": "^7.9.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-material-ui-form-validator": "^3.0.0",
"react-swipeable-views": "^0.14.0",
"react-transition-group": "^4.4.2",
"sentry": "^0.1.2",
"sharp": "^0.30.3",
"validator": "^13.7.0"
},
"devDependencies": {
}
}
`
Reproduction URL
not possible
Describe the issue
Hi,
I tried to setup 2 user pools with cognito. However when I click any button only takes me to the first id client in AWS.
CognitoProvider({ credentials: { username: { label: "Username", type: "text", placeholder: "jsmith" }, password: { label: "Password", type: "password" } }, name: "Customers", clientId: process.env.COGNITO_NEXT_AUTH_CLIENT_ID, clientSecret: process.env.COGNITO_NEXT_AUTH_CLIENT_SECRET, issuer: process.env.COGNITO_ISSUER, domain: process.env.COGNITO_DOMAIN, idToken: true, }), CognitoProvider({ credentials: { username: { label: "Username", type: "text", placeholder: "jsmith" }, password: { label: "Password", type: "password" } }, name: "Termatrac", clientId: process.env.COGNITO_TERMATRAC_NEXT_AUTH_CLIENT_ID, clientSecret: process.env.COGNITO_TERMATRAC_NEXT_AUTH_CLIENT_SECRET, issuer: process.env.COGNITO_TERMATRAC_ISSUER, domain: process.env.COGNITO_TERMATRAC_DOMAIN, idToken: true, }),
Please help me with this issue
How to reproduce
Just create 2 cognito providers with different configurations. On click... they will redirect to the same AWS domain
Expected behavior
Redirect to their respective user pools domains
Beta Was this translation helpful? Give feedback.
All reactions