# Authorization Service REST API Endpoint

This REST API offers 2 endpoints:

- GET at http://172.16.0.51:8080/auth_service/api/auth/ping
  which will confirm the service is reachable
- POST at http://172.16.0.51:8080/auth_service/api/auth/verify
  which will validate a JWT token (see below)

1. Open a Browser to: http://172.16.0.51:8080/mocksso/
   and select the values you need.
2. Copy the token string.
   This token has a 60 minute timeout.
3. Open a REST API tool (like SoapUI or httpie.io)
   and create this POST request (using the string the step 2):

       {"token":"abcdefghijklmnopqrst...uvwxyz"}

4. The Authorization Server will respond with this reply format:

       {
          "fName": "Vevay",
          "lName": "Petch",
          "loc": "Japan",
          "id": 6,
          "dept": "Information Technology",
          "title": "Developer"
       }