Hello all - #noob. Playing with Kratos... (Initi...
# talk-kratos
w
Hello all - #noob. Playing with Kratos... (Initially didn't want to join Slack 😬) Can use some guidance with the phone number and Ory Cloud
/ui/registration
returning
invalid tel
for legitimate numbers. Please refer to: https://github.com/ory/cloud/discussions/158
c
I think you need it in international format with the + prefix (i.e. +447000000000 in the UK)
m
@wooden-monitor-66999 your github issue needs to list some phone numbers you’ve tried.
w
I've tried +1774nnnnnnn also. Along with (774) nnn-nnnn these all fail.
the "n" is meant to indicate a number between 0-9 inclusive... its my personal cell so didn't want share in open forum.
c
The number +15774000000 is accepted in my deployment
m
Make up some equivalent numbers and put them in the ticket :)
c
Can you provide an example non-valid number that fails?
Interstingly while +15774000000 is accepted, +17740000000 isn't accepted
w
😞 Uggh... Egg on my face... I swear it didn't work with +1. Just tried it (had tweaked some of the Identity schema) and now it works. User error - apologies.
I wonder why (774) 000-0000 isn't accepted... could be the 000 isn't a legitimate exchange.
Thank you! for checking and persisting (bow)
c
What did you change in the schema? I'm still finding any number starting +177 followed by 7 digits is failing?
I stand corrected, +17746279919 works, it looks like it does do more validation
w
I had removed the
recovery
and
validation
specifications for
phone
- tho I can't see why that would prevent lib number to fail.
c
I've still got those, could it have been a typo entering the phone number?
w
Thank you @cuddly-elephant-29413 - yes it could have... I did try out just 7742700001 on the tester URL an it reports it as valid. shrug I may have entered it incorrectly... I was using my legit cell number so...
Say - how do I remove the identity in Ory Cloud via the managed uI? So I can retest with new phone numbers?
c
No idea I'm afraid, I've only played around with our self-hosted version
Wasn't there a tick-box for customizing the identity schema?
w
Yup there is...
My successful registration has created an Identity with my email address... this I want to remove. No matter, I'll use mailinator emails for new id registrations.
c
A delete request to the admin api will remove the user
Make a GET request to https://kratos-admin.ory.example.com/admin/identities to get the UUID for your user
There is also the krartos CLI tool
You should be able to interrogate identities with it similarly (
kratos identities list
and
kratos identities delete
) see documentation at https://www.ory.sh/docs/kratos/cli/kratos-identities-list
r
When you have issues with
+
it may be a url encoding oddity
w
OK... I was able to reproduce the error in Kratos for a number that is reportedly valid by phone numbers.temba.io.
m
@wooden-monitor-66999 I don’t have an answer, but I wonder: is it possible that Ory is failing to detect a country code?
c
It works on the tester because the country code is specified in the drop-down. This is the reason it needs to be specified in international format (i.e. +1 prefix) when entering in Ory
m
Thanks a ton for the help Anthony 🙌