ory / network

Ory runs a global end-to-end security infrastructure for humans, robots, and servers. We build and use open source software.
Apache License 2.0
81 stars 6 forks source link

Updating custom domain does not update magic link url correctly #223

Open aeneasr opened 1 year ago

aeneasr commented 1 year ago

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 commented 1 year ago

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