https://github.com/making/demo-two-factor-authentication
Two-Factor Authentication Demo with Spring Security
https://github.com/making/demo-two-factor-authentication
Last synced: 12 months ago
JSON representation
Two-Factor Authentication Demo with Spring Security
- Host: GitHub
- URL: https://github.com/making/demo-two-factor-authentication
- Owner: making
- Created: 2023-09-07T16:01:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-17T07:25:50.000Z (over 2 years ago)
- Last Synced: 2025-04-06T07:43:11.080Z (about 1 year ago)
- Language: Java
- Size: 88.9 KB
- Stars: 16
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Two-Factor Authentication Demo with Spring Security
Visit http://localhost:8080/signup to register for an account.

2FA is disabled by default.

Log out.

Log in again.

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

Enable 2FA.

Read the QR code using Google Authenticator.

Check the code.

Enter the code and click the verify button.

2FA has been enabled.

Log out.

Log in again.

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

Check the code with Google Authenticator.

Enter the code and click the verify button.

Login was successful.
