Sign Out

This procedure describes process to Sign Out.

  1. Call the SignOn API and get the authorization token, XSRF-TOKEN token, and JSESSION ID from the header in the response
    .
    Authorization:
    eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJBZG1pbmlzdHJhdG9yOjE3Mi4yMC4xODYuMzU6MTM2MzplMDI0YjAzZC
    03NzkwLTQxMjItOTZkOC1iZjg5MmY5NDcxM2MiLCJleHAiOjE1NTcxMjcyMTJ9.ME_mni-wgmrzVL214ijhxNzU-
    bgHw9bv-Ktz8WL84ljpEYtgm89jfH7ehspyk-zgS6J8JiL2GJrG3JYo1REs1w
    XSRF:
    809ab7e8-c6be-41ac-84f1-b4f8db246d9e
    JSessionID:
    node04p0v71bx6q46u2qthvr32htv3.node0
  2. Submit a DELETE request at the following:
     https://<CDWS_IPAddress:Port>/cdwebconsole/svc/signout 
  3. Call the API with the Authorization header:
    Authorization: <Authorization Token_From_Step_1>
  4. Call the API with the XSRF header as X-XSRF-TOKEN:
    X-XSRF-TOKEN : <XSRF_Token_From_Step_1>
  5. Call the API with the JSESSEION ID:
    JSESSION ID : <JESSIONID_From_Step_1>
  6. Set the content type to:
    Content-Type: application/json
  7. Set the request body as follows:
    {
    "userAccessToken": "<Access_Token_From_Step_1>"
    }
  8. Complete the request body as follows:
    curl -s -i --cookie 'XSRF-TOKEN=<XSRF_TOKEN_FROM_RESPONSE_HEADER>;
    JSESSIONID=<JSESSIONID_FROM_RESPONSE_HEADER>; ' -H '
    Authorization:<AUTHORIZATION_TOKEN_ FROM_RESPONSE_HEADER> ' -H '
    Content-Type: application/json' -H 'X-XSRF-TOKEN: <XSRF_TOKEN_FROM_RESPONSE_HEADER>'
    -X DELETE -d '{"userAccessToken":"<AUTHORIZATION_TOKEN_ FROM_RESPONSE_HEADER> "}' 
    -k 
  9. Response received as follows:
    {
     "signOut" : true,
     "userId" : "administrator"
    }