-
Hello - Newbie here. Appreciate any thoughts, input or suggestions. Identity schema with Tel looks like this:
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
I think you need it in international format with the + prefix (i.e. +447000000000 in the UK) |
Beta Was this translation helpful? Give feedback.
-
To assist +17740000000 is reported as not valid while +15774000000 is accepted as valid. There is no country code +17 or +177 so should not be anything it could get confused about. |
Beta Was this translation helpful? Give feedback.
-
For anyone who finds this, it looks like the validator does more than country code validation and there may have been a mistake in the OP's entry causing it to report as invalid. The library used by Kratos (indirectly via jsonschema) for validating is https://github.com/nyaruka/phonenumbers (with a live tester at https://phonenumbers.temba.io/) |
Beta Was this translation helpful? Give feedback.
-
OK - after deleting the identity, I was able to recreate the issue. While |
Beta Was this translation helpful? Give feedback.
-
While it still doesn't work for numbers that libphonenumber port nyruka accepts, a "fix" is to include country code. For example, by adding "+1" to the above number, i.e., using +17742700001, Ory Cloud managed UI does accept and passes the validation for |
Beta Was this translation helpful? Give feedback.
-
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 - you'll note there is no 'country code' drop-down in Ory UI. |
Beta Was this translation helpful? Give feedback.
While it still doesn't work for numbers that libphonenumber port nyruka accepts, a "fix" is to include country code. For example, by adding "+1" to the above number, i.e., using +17742700001, Ory Cloud managed UI does accept and passes the validation for
tel
format.