Validate Token v2

post

/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
  • An identifier for the device making the service call. If not provided, the requesting IP address is used.
  • Specify the environment to use for login. If not specified, the default environment configured for the AIS Server will be used.
  • The HTML (JAS) Server to use for login. If not specified, the default HTML Server configured for the AIS Server will be used.
  • The JD Edwards EnterpriseOne password, which is required if other authentication methods are not being used.
  • Used for logging in with psToken. Primarily used by the HTML Server to establish a session with the AIS Server.
  • The role to use for login. If not specified, the default role configured for the AIS Server will be used.
  • The AIS token, which is required if other authentication methods are not being used.
  • Touch the user session to extend the session timeout.
  • JD Edwards EnterpriseOne username, which is required if other authentication methods are not being used.
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