- 最新
- 投票最多
- 评论最多
Hey there!
From what you've described, it sounds like there's a bit of a loop happening during the login process. This typically occurs when Cognito tries to send users back to the right place after they've logged in.
Firstly, head over to the Amazon Cognito console. From there, find your user pool settings. You'll want to navigate to the "App client settings" section. Once you're there, take a look at the "Callback URL(s)" setting.
Make sure that the callback URL listed there is set to the exact URL of your CloudFront distribution where your website is hosted. It should include the "https://" part and everything, like "https://your-cloudfront-domain.com/callback".
By updating this setting to point directly to your CloudFront distribution URL, Cognito should stop redirecting users to the CloudFront distribution domain, hopefully breaking the loop!
Give it a try and let us know how it goes. If you're still having issues after that, you can dive deeper into your Lambda@Edge function to make sure everything is set up correctly.
相关内容
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
Can you elaborate what the lambda code does?