nebular icon indicating copy to clipboard operation
nebular copied to clipboard

Two factor authentication with JWT and SMS

Open yarikwest opened this issue 3 years ago • 2 comments

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 avatar Jul 07 '21 10:07 yarikwest

@yarikwest Have you ever found a solution for that, I am also interested in 2FA/MFA with SMS/Authenticator App?

andorfermichael avatar Apr 27 '23 11:04 andorfermichael

@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:

yarikwest avatar Apr 27 '23 15:04 yarikwest