Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.md
Octocat-spinner-32 pom.xml
README.md

Build Status

AeroGear JAXRS Demo

Current API

POST /rest/auth/login


curl -3 -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H "Content-type: application/json" -X
POST http://localhost:8080/aerogear-jaxrs-demo/rest/auth/login  -d '{"loginName":"john","password":"123"}'

POST /rest/auth/logout


curl -3 -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H "Content-type: application/json" -X
POST http://localhost:8080/aerogear-jaxrs-demo/rest/auth/logout

GET /rest/auth/otp/secret

To retrieve the secret


curl -3 -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H "Content-type: application/json" -X
GET http://localhost:8080/aerogear-jaxrs-demo/rest/auth/otp/secret

POST /rest/auth/otp

To login with the OTP secret


curl -3 -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H "Content-type: application/json" -X
POST http://localhost:8080/aerogear-jaxrs-demo/rest/auth/otp  -d '{"secret":"YOUROTP"}'

Test Page

When accessing the app (index.html) you will have a page to test :

  • Login
  • Logout
  • Generate OTP
  • Login with OTP

Community

Issue Tracker

Something went wrong with that request. Please try again.