Hi friends, we noticed that verification code SMS ...
# ory-network
e
Hi friends, we noticed that verification code SMS that are sent to end users contain the instance name. Is this intentional? Is it a bug? Is it a misconfiguration on our end? It's very confusing to non technical users.
r
This is a hint to the operating system (iOS, Android) to be able to autofill the code directly in the browser, without having to switch to the SMS app. If your user is interacting with the Ory Network project through your CNAME (
auth.acme.org
or whatever), that domain should appear instead of the project slug.
e
I see, thanks. I'm pretty sure we're interacting with Ory through the CNAME everywhere, but I need to double check.
a
Hey, Arne! We dug into it, and we think this is on the Ory Network side rather than a misconfiguration. Here's what we checked already: Our setup (project stupefied-aryabhata-01jl8umf31): • All our clients use the CNAME as the SDK URL: the mobile app (native flows), the web app (browser flows) and our Next.js identity UI (@ory/nextjs) use auth.metapic.com. None of our code or deploy config references *.projects.oryapis.com. •
selfservice.methods.oidc.config.base_redirect_uri
is auth.metapic.com, and the Google/Apple redirect_uri does point to the CNAME, so social login callbacks don't go through the slug either. • There are no custom SMS templates. We use the built-in login_code / verification_code ones, so the @… #code line comes from RequestURLDomain. • Our SMS HTTP channel body is just { to: ctx.recipient, body: ctx.body }, and our relay passes the body to AWS SNS unchanged. Nothing on our side rewrites the text. I checked the flow specifically for my account (prod, browser, requested_aal: aal2). The ory flow sent an SMS ending in "@stupefied-aryabhata-01jl8umf31.projects.oryapis.com #….", and Kratos redirected me to /self-service/login/browser?aal=aal2 with return_to set to that settings URL. Fetching the flow via auth.metapic.com, I got:
Copy code
"return_to":   "https://auth.metapic.com/self-service/settings/browser?app=creator&lang=en&returnUrl=…"
"request_url": "https://auth.metapic.com/self-service/login/browser?aal=aal2&return_to=https%3A%2F%2Fstupefied-aryabhata-01jl8umf31.projects.oryapis.com%2Fself-service%2Fsettings%2Fbrowser%3Fapp%3Dcreator…"
"ui.action":   "https://auth.metapic.com/self-service/login?flow=8f7316d9-…"
b
Hi, thanks for the investigation. This indeed seems to be a bug with the way we handle CNAMEs on the Ory Network. A fix is underway and should be available to you in the coming days.
🙏 1
👍 1
a
@bland-eye-99092 were you able to make a fix? It's not urgent by any means, but maybe you have an update
b
It's still on its way through our pipelines. Should be released this week
👍 1
Hi, this should now be fixed. Can you check again?
a
thank you, it worked!