nebular
nebular copied to clipboard
Two factor authentication with JWT and SMS
Hi,
I am trying to do two factor authentication using JWT and SMS code verification. Please direct me, how can I to do it? Should I extend NbPasswordAuthStrategy or something else, or maybe its impossible and I have create my own implementation?
I have implemented JWT authentication with NbPasswordAuthStrategy and on backend side with Spring Security at this moment, and now I need to extend it to 2FA.
Thanks.
@yarikwest Have you ever found a solution for that, I am also interested in 2FA/MFA with SMS/Authenticator App?
@yarikwest Have you ever found a solution for that, I am also interested in 2FA/MFA with SMS/Authenticator App?
Just extend NbPasswordAuthStrategy, override authenticate() method combining copy-paste from original with custom logic and add own methods. Also extend login page component with overriding login() method (also with copy-paste + own code)
Looks little bit ugly, but works :smiling_face_with_tear: