Skip to content

karthik-krishnan/totp-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#a TOTP Demo

A simple demo of TOTP functionality

This application is a simple Spring Boot Application to allow registration of TOTP Soft Tokens and to validate TOTP. I have wrapped the APIs with a simple UI to demonstrate the functions.

Steps to run the application

mvn spring-boot:run

Server will run on http://localhost:8080

Registration API

POST /[email protected] HTTP/1.1
Host: example.org
Content-Type: application/json; charset=utf-8
Content-Length: 137

###Expected Response
200 OK
Registration successful. Please check your email for more information.

Validation API

POST /[email protected]&otp=123456 HTTP/1.1
Host: example.org
Content-Type: application/json; charset=utf-8
Content-Length: 137

###Expected Response
200 OK
true (or) false

UI Screenshot

Image

About

A simple demo of TOTP functionality

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published