Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to use my own domain for cognito user hosted UI #10800

Closed
AsitDixit opened this issue Jul 25, 2022 · 2 comments
Closed

I want to use my own domain for cognito user hosted UI #10800

AsitDixit opened this issue Jul 25, 2022 · 2 comments
Labels
auth Issues tied to the auth category of the CLI duplicate If marked with duplicate, issue will be closed & original will be added for traceability question General question

Comments

@AsitDixit
Copy link

During amplify add auth it is asking about about oAuth flow and client ID & secret and creating a domain like this "https://xxxxxxxx-dev.auth.us-east-1.amazoncognito.com/".
I deleted the above domain in my user pool and used my own domain name "auth.mydomain.com" with my issued certificate.

It is showing a massage that:
Before you can use this domain, you must add the alias target to your domain’s DNS record. If you’reusing Amazon Route 53 to manage your domain, you can do that from the Route 53 console.
Alias target xxxxxxxxxxx.cloudfront.net

So added the above to my DNS record as type: CNAME , name: alias, value:xxxxxxxxxxx.cloudfront.net
But it is not working:

When I am clicking on signup button(in my app) it is loading a custom tab with url:"https://xxxxxxxx-dev.auth.us-east-1.amazoncognito.com"
with error: "DNS_PROBE_FINISHED_NXDOMAIN"
When I am clicking on LunchHostedUI(in user pool app client section) it loading a site with my domain url but error:"auth.mydomain.com’s DNS address could not be found. Diagnosing the problem.
DNS_PROBE_POSSIBLE"
I know I am missing something but I am unable to detect that.

@AsitDixit AsitDixit added the question General question label Jul 25, 2022
@josefaidt josefaidt added auth Issues tied to the auth category of the CLI duplicate If marked with duplicate, issue will be closed & original will be added for traceability labels Jul 25, 2022
@josefaidt
Copy link
Contributor

Hey @AsitDixit 👋 thanks for raising this! Unfortunately we do not currently support custom domains for Cognito Hosted UI. Please subscribe to the following feature request for further updates and potential workarounds #1880

@josefaidt josefaidt closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2022
@AsitDixit
Copy link
Author

@josefaidt How you said that but I am able to use that in my userpool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Issues tied to the auth category of the CLI duplicate If marked with duplicate, issue will be closed & original will be added for traceability question General question
Projects
None yet
Development

No branches or pull requests

2 participants