Replies: 1 comment
-
Hello! Reopening this discussion to make it searchable. |
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.
-
Hi all,
We deploy a Website in an S3-bucket and protect it with Cognito. (using CDK)
When a user clicks a deeplink to the site (e.g. https://mydomain/message?id=1111), a redirect to Cognito's login URL is in place:
getLoginUrl is defined as:
However, the user is directed to https://auth.mydomain/login?client_id=xxx&redirect_url=https://mydomain/auth/#https://mydomain/message?id=1111
In doing so, the original deeplink URL is lost upon authentication on the Cognito sign-up page as it gets attached automatically behind the #-sign.
How can we make sure the redirect to Cognito stores the original URL (e.g. as state parameter)?
For reference, this is how we integrate the S3-bucket with the API gateway and an authorizer.
Beta Was this translation helpful? Give feedback.
All reactions