https://github.com/hardiksinghbehl/email-2fa-spring-boot
Email based 2FA implementation using Spring-boot and Java-mail API
https://github.com/hardiksinghbehl/email-2fa-spring-boot
2fa java java-mail multi-factor-authentication spring-boot spring-security
Last synced: 9 months ago
JSON representation
Email based 2FA implementation using Spring-boot and Java-mail API
- Host: GitHub
- URL: https://github.com/hardiksinghbehl/email-2fa-spring-boot
- Owner: hardikSinghBehl
- Created: 2021-10-09T15:22:52.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-09T16:20:34.000Z (over 4 years ago)
- Last Synced: 2025-04-09T23:50:53.221Z (about 1 year ago)
- Topics: 2fa, java, java-mail, multi-factor-authentication, spring-boot, spring-security
- Language: Java
- Homepage:
- Size: 75.2 KB
- Stars: 9
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Email based 2 Factor Authentication: implementation using Spring-boot, Spring-security and Java-Mail API
### Local Setup
* Install Java 17 (recommended to use [SdkMan](https://sdkman.io))
`sdk install java 17-open`
* Install Maven (recommended to use [SdkMan](https://sdkman.io))
`sdk install maven`
* Clone the repo and Go to application.properties under src/main/resources and replace the below mentioned values with correct ones
```
spring.mail.username =
spring.mail.password =
```
* Run the below command in core
`mvn clean install`
* To start the application, run any of the below 2 commands
`mvn spring-boot:run &`
`java -jar /target/email-based-two-factor-auth-spring-boot-0.0.1-SNAPSHOT.jar`
* Access the swagger-ui
`http://localhost:8080/swagger-ui.html`