/demo-two-factor-authentication

Two-Factor Authentication Demo with Spring Security

Primary LanguageJava

Two-Factor Authentication Demo with Spring Security

Visit http://localhost:8080/signup to register for an account.

image

2FA is disabled by default.

image

Log out.

image

Log in again.

image

2FA is disabled, so login is successful with only username and password.

image

Enable 2FA.

image

Read the QR code using Google Authenticator.

image

Check the code.

image

Enter the code and click the verify button.

image

2FA has been enabled.

image

Log out.

image

Log in again.

image

This time, 2FA is enabled, so you will be asked to enter a code.

image

Check the code with Google Authenticator.

image

Enter the code and click the verify button.

image

Login was successful.

image