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)
-
Open a Browser to: http://172.16.0.51:8080/mocksso/
and select the values you need.
-
Copy the token string.
This token has a 60 minute timeout.
-
Open a REST API tool (like SoapUI or httpie.io)
and create this POST request (using the string the step 2):
{"token":"abcdefghijklmnopqrst...uvwxyz"}
-
The Authorization Server will respond with this reply format:
{
"fName": "Vevay",
"lName": "Petch",
"loc": "Japan",
"id": 6,
"dept": "Information Technology",
"title": "Developer"
}