Skip to content

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).

Notifications You must be signed in to change notification settings

Ali-Hassan33/Generate_Authorization-token_upon_OTP_Verification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

About

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).

Development Environment

  • Intellij Idea
  • Java 21
  • Spring Boot 3.2.5 + Maven
  • PostgreSQL

Testing via HTTP Client

  • Sign-up

POST http://localhost:8080/signUp
username: John Doe
password: 1234
email: [email protected]

image


  • Sign-in

POST http://localhost:8080/signIn
username: John Doe
password: 1234


  • Sending OTP

POST http://localhost:8080/signIn
username: John Doe
otp: 9446


  • Accessing end-points via Authorization-token

GET http://localhost:8080/greet
Authorization: 4c55f9d4-86be-4f86-8014-d0533298b173

image


  • Accessing end-points via invalid Authorization-token

GET http://localhost:8080/greet
- Authorization: 7c55f9d4-86be-4f86-8014-d0533298b142

image

About

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).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages