In this section, we will implement the logging out scenario using Spring Security in a JSF application.
commandButtonon the JSF page
Perform the following steps for implementing Spring Security logout in a JSF application:
CredentialManagerbean again. It will have another custom logout method.
Login.jspremains the same as the previous example. Do not forget to copy it into the new project. We will use form-based authentication here:
package com.packt.jsf.beans; import java.io.IOException; ...