network icon indicating copy to clipboard operation
network copied to clipboard

Updating custom domain does not update magic link url correctly

Open aeneasr opened this issue 2 years ago • 1 comments

Preflight checklist

Describe the bug

When updating the custom domain (to another domain), the /selfservice/methods/link/config/base_url value is not properly being set.

Reproducing the bug

  1. Create a project
  2. Set a custom domain
  3. Use magic links
  4. Send verification email (via oryapis.com, not via custom domains)
  5. Set new custom domain
  6. Send verification email (via oryapis.com, not via custom domains)
  7. Verification link uses old CNAME

Relevant log output

No response

Relevant configuration

No response

Version

master

On which operating system are you observing this issue?

Ory Network

In which environment are you deploying?

Ory Network

Additional Context

There is a workaround - run the following command to reset this config value, which sets it to the correct custom domain:

ory patch identity-config <your-project-id> \
  --remove '/selfservice/methods/link/config/base_url'

aeneasr avatar Jan 20 '23 14:01 aeneasr

https://ory-community.slack.com/archives/C02MR4DEEGH/p1673886271632689

aeneasr avatar Jan 20 '23 14:01 aeneasr