-
-
Notifications
You must be signed in to change notification settings - Fork 964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow phone numbers as login identifiers #137
Comments
@aeneasr can we divide the number into two parts i.e. country code + phone number by doing this we can maintain the uniqueness |
That's a really good idea! I'm also pretty sure that there's a go library somewhere to help with this |
@aeneasr you can check that project it's a implementation of google's libphonenumber |
Ah nice! Of course Google solved that already :D I also found: https://github.com/nyaruka/phonenumbers |
yes this project is forked from above project. Can i pick that one ? |
Looks like https://github.com/nyaruka/phonenumbers is more active, and resolves issues |
This issue is scheduled for the v0.0.2 milestone, it needs several other things to be implemented first, so it's not a good issue. I'll try to find another good issue for you now! |
Any chance this feature might get put back on the schedule? |
We always welcome community contributions towards features such as these but we usually don't change priorities or give out timelines so I can't make any commitments here. |
If I understand it correctly, what this issue wants to solve is as follows:
It's common that login with phone number and verification code, since there is no need for user to remember their password, but definitely, there is lots of things to consider, e.x.
|
Please correct me if I'm wrong — so, it's not possible right now to verify user's phone number with Kratos (via SMS codes) or use it during the registration/login? |
Yes, this is not possible at the moment! But it's on the roadmap! |
I'm reading the documentation. For the SMS verification can it be custom implemented by changing the state of the identity programmatically? I guess that can be stored in the traits, but I don't know if there is an internal state for identified to be verified or no (kind of what happens with the email verification flow). And, if there is, if it can be easily changed from the API. |
Hm, not sure if I follow, could you expand your hypothesis a bit? |
Yeah, sorry for that. I see in the documentation the concept of traits, which allows to store some state in an account. On there you can have things like the role of the user and other extra information. I see that there is a flow that automatically sends an email in order to verify the email. Now, I'm assuming that the account is not "active" until the email is validated by the user. Or, if it is active, at least the email is not validated and that is stored somewhere. So the program communicating with Kratos knows that this account is not yet validated. The main problem with the SMS is that that validation cannot be implemented in the same way the email is because Kratos doesn't yet implement that identification method. What I was thinking of is, is it possible to have the phone number and delegate the account "activation/verification" to an external service that later updates the account? I'm assuming many things in here, as I didn't yet see in the docs how unverified accounts work in kratos. I hope I got it right and that it makes sense! |
Hey yes that's absolutely possible to do externally for now. Keep in mind though that the identity traits can be modified by the user him/herself. We have plans for "protected" fields which can only be changed by admins/system processes/api calls. There's an issue for that, I just can't find it right now! |
Any update? |
Do we have any progress or intention to have mobile number registration/login in the near future. |
Best option is to contribute this change. You can see what we are working on by taking a look at the milestones of this projects and its open PRs |
Team of project that I'm working on finds Kratos a very good fit for our goals. We want to give it a try, but phone number support is critical feature for us. |
Yes, I believe so |
FYI: docs still say:
|
Thanks for the headsup drigz 🙌 - will be removed in the next PR :) |
Is your feature request related to a problem? Please describe.
We should allow users to use their phone number as the login identifier. This is very popular amongst mobile apps.
Describe the solution you'd like
We should support a format such as
format: "phone_number"
in the JSON Schema to allow the use of phone numbers.One difficulty with phone numbers is uniqueness. For example, the following numbers are all pointing to the same SIM card (german phone number):
The text was updated successfully, but these errors were encountered: