Skip to content

Cognito custom domain url modify behavior

0

Hi Team,

We have a subdomain (oauth.sandbox.vismerchantfilter.visa.com) registered as a custom domain in the cognito, for that, we need to prevent from responding with HTTP 200 status codes. Our goal is to ensure that any requests to this subdomain do not succeed.

We would like guidance on configuring Route 53 to prevent successful connections to this subdomain, by pointing it to a “blackhole” IP address.

What we have done: Used Route 53 to set an A record for oauth.sandbox.vismerchantfilter.visa.com. Pointed this record to a “blackhole” IP address (0.0.0.0).

We have tested in the postman but we are still getting 200 response only.

Could you please confirm if this approach is correct?

Additionally, we would like any recommendations or alternative methods if available.

Account ID: 675076543228 Domain: oauth.sandbox.vismerchantfilter.visa.com

2 Answers
0

That sub domain points to d3su4smx98o4pa.cloudfront.net and not 0.0.0.0

This is why you’re getting a http 200. It’s pointing to cloudfront. It returns a blank page.

https://oauth.sandbox.vismerchantfilter.visa.com/

Check your dns records.

EXPERT

answered 2 years ago

0

Created an A record and returned 127.0.0.1 but still getting same 200

answered 2 years ago

  • It’s still pointing to cloudfront. You need to delete the other record.

  • This cloudfront is mapped from ACM which is automatically imported by aws Unable to delete this any idea how to use cognito url without using ACM which refers to cloudfront url ? Also this customdomain is mapped with Alias target in cognito which in turn mapped to cloudfront url is there any way of changing this behaviour

  • Unable to modify this behavior of cognito hosted ui for this domain any help?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.