Replies: 1 comment
-
Running into the same issue using SvelteKit + CloudFlare LB. PS: Was actually able to solve it by setting the |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
I've used an AWS Adapter to deploy an AWS Cloudfront set up with an alternate domain name, route 53, certificates, etc. That all appears to be working fine on https://app-dev.ferrisium.com/. Cognito was deployed separately via Terraform and callback URLs have been configured for:
A link on a regular svelte page to /auth/signin/ brings up a page with a "Sign in with Cognito" button still hosted on https://app-dev.ferrisium.com/auth/signin. However the provided "Sign in with Cognito" button sends us off to the "raw" API Gateway url like https://xxxxxxx.execute-api.eu-west-1.amazonaws.com/auth/signin/cognito that then 302 redirects back to https://app-dev.ferrisium.com/auth/signin?csrf=true in an endless loop. The API Gateway is not configured with a custom domain name. Why is authentication broken when hosted in AWS?
When running dev mode on localhost, that button takes us off to the Cognito hosted UI, where sign-in works as expected and we're returned to the specified callbackUrl.
How to reproduce ☕️
// hooks.server.ts
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
Beta Was this translation helpful? Give feedback.
All reactions