Validate Token v2

post

/jderest/v2/tokenrequest/validate

Determine if the the token passed is still valid.

Request

Supported Media Types
Header Parameters
Body ()
The input to the tokenrequest/validate service.
Root Schema : ValidateRequest
Type: object
The input to the tokenrequest/validate service.
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful Execution - Token is Valid

400 Response

Bad Request - Invalid JSON Input

403 Response

Token is Invalid

415 Response

Invalid Content-Type Header - Must use application/json

444 Response

Invalid Token
Body ()
Root Schema : ServiceErrorResponse
Type: object
Error Response
Show Source

500 Response

Server Failed to Process Request
Body ()
Root Schema : ServiceErrorResponse
Type: object
Error Response
Show Source
Back to Top

Examples

Example Request - Basic

The following shows an example of a token validation request which is used to determine if a token is still valid.

curl -X POST -H "Content-Type:application/json" http://ais_server_url/jderest/v2/tokenrequest/validate -d
{
    "token": "044RCAgER+J6ZDUAZgotcr4Xju0x33EUSOJZzW8xFc2Gtk=MDE5MDEzMzQzNDYxMzc3NTc5ODc3NDA3NTEwLjEzOS4xMTEuODMxNTE2MTE1MzQ4Mjgw"
}

Example Response - Valid

The following example shows the contents of the response body when the token is valid. The response status code will be 200.

{ "isValidSession":true }

Example Response - Invalid

The following example shows one possible value for the response body when the token is invalid. It is best to use the status code for consistent determination of token validity. Anything other than a 200 status is an invalid token.

{
  "message" : "Invalid Token",
  "exception" : "java.lang.Exception",
  "timeStamp" : "2018-01-16:15.17.29"
}
Back to Top