Deprecated
JavaScript Java CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src hide otp message on logout Oct 15, 2013
.gitignore gitignore updates Oct 1, 2012
.travis.yml enable notifications Apr 10, 2013
LICENSE.txt adding demo Mar 19, 2012
README.md Update travis build image Dec 16, 2013
pom.xml get back to the stable ag-sec-pl release Oct 11, 2013

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