Sign Out

Workflow

Sign Out is required to close an active session.

  1. Call the SignOn API and get the authorization token and XSRF-TOKEN token from the header in the response.
    Authorization:
    eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJBZG1pbmlzdHJhdG9yOjE3Mi4yMC4xODYuMzU6MTM2MzplMDI0Y
    jAzZC03NzkwLTQxMjItOTZkOC1iZjg5MmY5NDcxM2MiLCJleHAiOjE1NTcxMjcyMTJ9.ME_mni-wgmrzVL
    214ijhxNzU-bgHw9bv-Ktz8WL84ljpEYtgm89jfH7ehspyk-zgS6J8JiL2GJrG3JYo1REs1w
    XSRF:
    809ab7e8-c6be-41ac-84f1-b4f8db246d9e
  2. Submit a DELETE request at the following:
    URL 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. Set the content type to:
    Content-Type: application/json; charset=utf-8
  6. Set the request body as follows:
    {
    "userAccessToken": "<Access_Token_From_Step_1>"
    }
  7. Complete the request body as follows:
    Delete /cdwebconsole/svc/signout HTTP/1.1
    Host: 172.20.186.34:9443
    Content-Type: application/json
    Authorization: eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJBZG1pbmlzdHJhdG9yOjE3Mi4yMC4xODYuMz
    U6MTM2MzplMDI0YjAzZC03NzkwLTQxMjItOTZkOC1iZjg5MmY5NDcxM2MiLCJleHAiOjE1NTcxMjcyMTJ9.
    ME_mni-wgmrzVL214ijhxNzU-bgHw9bv-Ktz8WL84ljpEYtgm89jfH7ehspyk-zgS6J8JiL2GJrG3JYo1R
    Es1w
    X-XSRF-TOKEN: 809ab7e8-c6be-41ac-84f1-b4f8db246d9e
    Cache-Control: no-cache
    {"userAccessToken": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJBZG1pbmlzdHJhdG9yOjE3Mi4yMC4xO
    DYuMzU6MTM2MzplMDI0YjAzZC03NzkwLTQxMjItOTZkOC1iZjg5MmY5NDcxM2MiLCJleHAiOjE1NTcxMjcy
    MTJ9.ME_mni-wgmrzVL214ijhxNzU-bgHw9bv-Ktz8WL84ljpEYtgm89jfH7ehspyk-zgS6J8JiL2GJrG3J
    Yo1REs1w"}
  8. Response received as follows:
     {
        "signOut": true,
        "userId": "Administrator"
    }