We do not support wildcard callback URLs due to security reasons.
Regarding adding the callback URL option in CloudFormation AWS::Cognito::UserPoolClient, we have heard this request from customers and we will try incorporating in our future releases.
I'm using cognito for openid connect auth.
If user opens a page and needs a login, I'd like him to be redirected to the same page after login. so my callback url is
the base url is same but with different target parameter.
is there any way to do it?
You can use the "state" parameter to pass the information about the page you want to redirect the user to. Cognito will pass the state value to your callback endpoint.
I think we can use wildcard for subdomain without security risk if someone wanted to. Let's say example.com is the domain then callback URL would be something like: https://*.example.com/oauth2/idpresponse
We have created a feature request on this and have put that on our road map. However, we don't have any ETA yet on this but please be assured that we are working on the same.
I kindly request you to keep an eye on AWS what’s new page and AWS blogs to get information regarding the updates on the above as well as for recent updates on other AWS services.
@sarthak-AWS - agree this would be a competitive edge / unique feature for Cognito - branch deploys are super common now but no one can authenticate them without loading new urls every time.
I second that, and that's exactly what we do for our deployments, they all go uder a sub-domain and then I have to manually add the url each time. Would be amaxing to have a wildcard since the domain used is our own *.abcdecompany.com would be perfect to take the manual step out of the deployment process.
Callback URL wildcards still aren't there. Could you shed some light on the state of affairs?
Is it possible for AWS to reset the user portal URL in SSO?Accepted Answerasked 6 months ago
What is the syntax for wildcards in the callback url?asked 5 years ago
Syntax for simple text log filteringasked 3 months ago
AWS.IotData.publish callback is not calledasked 2 years ago
Amazon connect delay callback until next dayAccepted Answerasked 10 months ago
CloudWatch trouble parsing @message for a string with wildcards.Accepted Answerasked 8 months ago
What is the right setup for development for a team who works on the same project?Accepted Answerasked 8 months ago
Syntax error in policy, while running 'iam create-policy', but there is no syntax mistakeAccepted Answerasked 8 months ago
In Opensearch, what is the syntax for adding an SNS destination using the _alerting API?asked 8 months ago
Can the StopContact method be made to allow stopping a contact with "Callback" initiationMethodAccepted Answerasked 8 months ago