Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 909 Bytes

README.md

File metadata and controls

43 lines (30 loc) · 909 Bytes

#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