15.13.5. Logging out
Logging out (forgetting an OpenID association) is done by calling
#{openid.logout}
. You can call this method directly if you are not using Seam Security. If you are using Seam Security, you should continue to use #{identity.logout}
and install an event handler to capture the logout event, calling the OpenID logout method.
<event type="org.jboss.seam.security.loggedOut"> <action execute="#{openid.logout}" /> </event>
It is important to include this, or the user will not be able to log in again in the same session.