Integrate logout functionality



  1. Install the CyberArk Identity Java-angular sample app
  2. Setup the Java-angular sample app

The Java angular sample app contains examples of how the client application can securely integrate the logout functionality of CyberArk Identity and log the users out from CyberArk Identity and the client application.

Once the user logs into the client application using the CyberArk Identity APIs, the user gets logged into CyberArk Identity. Hence, the client application should not only log out the user from their application but also log the user out from CyberArk Identity.

The sample app demonstrates this logout functionality using the /security/logout endpoint.

Once the user clicks on Logout, the user will be logged out from sample app and CyberArk Identity.


Example request and response for logout API:

Authorization: Bearer eyJhbGciOi...

POST /Security/logout

The success field in the response indicates whether the request was successful or not.

    "success": true,
    "Result": null,
    "Message": null,
    "MessageID": null,
    "Exception": null,
    "ErrorID": null,
    "ErrorCode": null,
    "InnerExceptions": null