cooperlyt/keycloak-phone-provider

Facing issues with Registration by Phone Flow

axoxymous-coder opened this issue · 3 comments

Hi,

I was trying out keycloak-phone-provider with Keycloak v21.1.1. I configured the registration by phone flow as mentioned in the README.md of this respositiry.

The screenshots for the same are shown below for reference:

image
image
image

Also, I had disabled Email As UserName feature and I added the two attributes for users: phoneNumber and phoneNumberVerfiied.

image
image

Now, when I try to register a new user using Phone number, although the registration is successful and username is persisted in DB with the phone number but the two attributes phoneNumber. and phoneNumberVerified are not persisted in the DB. Because of this when the new user tries to login using Phone Number, the Keycloak returns a LOGIN_ERROR with user not found

I am using the latest master branch of keycloak-phone-provider with Keycloak v21.1.1

Any help will be highly appreciated.

phoneNumber and phoneNumberVerfiied is not User profile , is user attribute.

Hi @cooperlyt, thanks for your reply. Where do the user attributes are created? Is it through the Client Scopes, as below?
image

Seems like things have changed in Keycloak 21.1.x (I may be wrong too). Because if I (manually) create an user with the phoneNumber and phoneNumberVerified in user profile, then only these are persisted by Keycloak in user_attribute table in DB. Example:

image

The above user's data gets saved in DB as below:

image

image

Am I missing something? Thanks in advance for your time.

Seems like the issue is fixed in v21.1.2. Closing the issue. Thanks @cooperlyt