Skip to content
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

Validate users' phone numbers appropriately in twilio-keycloak-provider #5

Open
bickelj opened this issue Feb 28, 2023 · 0 comments
Open

Comments

@bickelj
Copy link
Contributor

bickelj commented Feb 28, 2023

When a user logs in with the twilio-keycloak-provider configured, a user attribute of mobile_number is required and used to send an SMS. At SMS send time, there is already appropriate validation because Twilio will return an error that successfully propagates out to the keycloak UI such that the user can see it:
when_a_bad_phone_number_is_configured_for_user_who_attempts_login_to_public_client

This issue is to validate phone numbers in other places, such as on entry of the number or at other appropriate times in user setup or validation. @jasonaowen said:

I've used Google's libphonenumber before, and it appears to have Java bindings.

Another option is Twilio's separate API for phone number validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant