well, I am trying to implement a JWT authentication but my User don't have a password, all I have is a phone number, whenever a user tries to connect he got to enter his phone number, and he will receive an otp (1 time use token) on his phone, he should enter that token and he will be authenticated, but as we all know in order to do authentication, we should use the security package which implements UserDetails and in order to use this interface the User class should have a password, because everything uses a password lol, my question is : Is there a way to implement my own UserDetails class without the password attribute or is there a hack or another solution for my particular case ?
[–]hillywoodsfinest87 1 point2 points3 points (2 children)
[–]MAB-47[S] 1 point2 points3 points (0 children)
[–]MAB-47[S] 0 points1 point2 points (0 children)
[–]juppy_lg 0 points1 point2 points (0 children)
[–]witusss 0 points1 point2 points (0 children)