Closed apheera closed 1 month ago
@apheera How did you register your CloudFront distribution with Route53? (Manually register in the AWS console, or change the CDK code?)
@Yukinobu-Mine
Yes I created a A record with Alias pointing to cloud front.
Also added Alternate domain name (CNAME) - optional pointing to URL I want to resolve but none is working.
Please note that I have integrated cognito with Azure AD, and authentication and authorisation works fine when it comes to default URL provided by CDK BUT when I register Cloud front to Route53 to a simplified name, that launches but LOGIN button doesn't work
and when I inspect the browser I get error below
index-5e8eddf3.js:165 Uncaught (in promise) InvalidOriginException: redirect is coming from a different origin. The oauth flow needs to be initiated from the same origin
at https://
@apheera Could you please provide the following information?
Allowed callback URLs
setting of your Cognito user pool set to your custom domain? (in AWS console, Cognito -> User pools -> AuthUserPoolXXXX -> App integration tab -> App client list -> AuthUserPoolClientXXXX -> Hosted UI)identityProviders
setting in your cdk.json. (not including secretName
)@apheera Thank you. You need to reflect custom domain settings to the front-end environment variables (in cdk/lib/constructs/frontend.ts) such as:
VITE_APP_REDIRECT_SIGNIN_URL: 'https://your-custom-domain',
VITE_APP_REDIRECT_SIGNOUT_URL: 'https://your-custom-domain',
This issue has been labeled as "stale" due to no response by the reporter within 1 month (and 14 days after last commented by someone). And it will be closed automatically 14 days later if not responded.
This issue has been closed due to no response within 14 days after labeled as "stale", 14 days after last reopened, and 14 days after last commented.
Describe the bug
With actual front end URL everything works but with URL which I registered in route53, it launches the page, and when I click on login button nothing happens.
Cognito is integrated with Azure AD and works well with default frontend URL but not with "route53 simplied record"
To Reproduce
Browse the DNS via browser example https://friendlyname.com, it brings the login button but when I click on it, nothing happens
Screenshots