Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Deprecated
Failed to load latest commit information.
src hide otp message on logout
.gitignore gitignore updates
.travis.yml enable notifications
LICENSE.txt
README.md Update travis build image
pom.xml get back to the stable ag-sec-pl release

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.