@Controller public class LogoutController extends Object
This controller handles the (application + identity provider) logout process, based on the logoutLogic.
The configuration can be provided via property keys: pac4j.logout.defaultUrl (default logourl url),
pac4j.logout.logoutUrlPattern (pattern that logout urls must match), pac4j.logout.localLogout (whether the application logout must be performed)
pac4j.logout.destroySession (whether we must destroy the web session during the local logout), pac4j.logout.centralLogout (whether the centralLogout must be performed).
pac4j.logout.path (the URL path to the logout controller).
Or it can be defined via setter methods: setDefaultUrl(String), setLogoutUrlPattern(String), setLocalLogout(Boolean),
setDestroySession(Boolean) and setCentralLogout(Boolean).
| Constructor and Description |
|---|
LogoutController() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getCentralLogout() |
org.pac4j.core.config.Config |
getConfig() |
String |
getDefaultUrl() |
Boolean |
getDestroySession() |
Boolean |
getLocalLogout() |
org.pac4j.core.engine.LogoutLogic<Object,org.pac4j.core.context.J2EContext> |
getLogoutLogic() |
String |
getLogoutUrlPattern() |
void |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setCentralLogout(Boolean centralLogout) |
void |
setConfig(org.pac4j.core.config.Config config) |
void |
setDefaultUrl(String defaultUrl) |
void |
setDestroySession(Boolean destroySession) |
void |
setLocalLogout(Boolean localLogout) |
void |
setLogoutLogic(org.pac4j.core.engine.LogoutLogic<Object,org.pac4j.core.context.J2EContext> logoutLogic) |
void |
setLogoutUrlPattern(String logoutUrlPattern) |
@RequestMapping(value="${pac4j.logout.path:/logout}")
public void logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
public String getDefaultUrl()
public void setDefaultUrl(String defaultUrl)
public String getLogoutUrlPattern()
public void setLogoutUrlPattern(String logoutUrlPattern)
public org.pac4j.core.engine.LogoutLogic<Object,org.pac4j.core.context.J2EContext> getLogoutLogic()
public void setLogoutLogic(org.pac4j.core.engine.LogoutLogic<Object,org.pac4j.core.context.J2EContext> logoutLogic)
public org.pac4j.core.config.Config getConfig()
public void setConfig(org.pac4j.core.config.Config config)
public Boolean getLocalLogout()
public void setLocalLogout(Boolean localLogout)
public Boolean getCentralLogout()
public void setCentralLogout(Boolean centralLogout)
public Boolean getDestroySession()
public void setDestroySession(Boolean destroySession)
Copyright © 2018. All rights reserved.