12.5. Logout
PicketLink allows you to configure a path to logout users. To configure a logout path just do:
httpBuilder .forPath("/logout") .logout()
Here, the
logout
method will mark the given path as a point of logout. In this case, when a request arrives to this path PicketLink will logout the user.
In some cases you may want to redirect the user to a specific path after a successful logout. For that you just need to:
httpBuilder .forPath("/logout") .logout() .redirectTo("/goodbye.html");