Build a web-application using Spring Security, Spring Web, and Spring Data JPA where authorization tokens are generated upon successful verification of One-Time-Password (OTP).
- Intellij Idea
- Java 21
- Spring Boot 3.2.5 + Maven
- PostgreSQL
POST http://localhost:8080/signUp
username: John Doe
password: 1234
email: [email protected]
POST http://localhost:8080/signIn
username: John Doe
password: 1234
POST http://localhost:8080/signIn
username: John Doe
otp: 9446
GET http://localhost:8080/greet
Authorization: 4c55f9d4-86be-4f86-8014-d0533298b173
GET http://localhost:8080/greet
- Authorization: 7c55f9d4-86be-4f86-8014-d0533298b142