Closed gisly closed 2 years ago
Please make sure you set up this library correctly. you can confirm it on 'Server Info' -> 'Provider'.
If you don't know how to integrate this library into Keycloak, please refer to https://github.com/FX-HAO/keycloak-phone-authenticator/tree/master/examples
Thank you! I changed the display name of the providers and could not find them.
Could you please help again with this issue? I can now send the SMS code and get the list of codes. However, I cannot get the token using a request to /auth/realms/{realm}/protocol/openid-connect/token, getting the "Invalid user credentials" error. I've added logging, and it seems that VerificationCodeAuthenticator.authenticate is not called at all, although I've set the new "Direct grant with SMS" flow for the client id I am using. Should I do something else to make keycloak call the VerificationCodeAuthenticator?
Sorry, I managed to do it. I actually changed searchForUserByUserAttribute to the more recent searchForUserByUserAttributeStream and it started working suddenly
I don't understand this part of the instruction:
There are no Provide Phone Number' line or 'Provide Verification Code' line, so how should I set up the direct grant flow?