public class ClientAction
extends org.springframework.webflow.action.AbstractAction
Before any authentication, redirection urls are computed for the different clients defined as well as the theme, locale, method and service are saved into the web session.
After authentication, appropriate information are expected on this callback url to finish the authentication process with the provider.| Modifier and Type | Class and Description |
|---|---|
static class |
ClientAction.ProviderLoginPageConfiguration
The Provider login page configuration.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLIENT_ACTION
Client action state id in the webflow.
|
static java.lang.String |
PAC4J_URLS
All the urls and names of the pac4j clients.
|
static java.lang.String |
STOP
Stop the webflow.
|
static java.lang.String |
STOP_WEBFLOW
Stop the webflow for pac4j and route to view.
|
static java.lang.String |
VIEW_ID_STOP_WEBFLOW
View id that stops the webflow.
|
| Constructor and Description |
|---|
ClientAction(org.apereo.cas.configuration.CasConfigurationProperties casProperties)
Build the ClientAction.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.webflow.execution.Event |
doExecute(org.springframework.webflow.execution.RequestContext context) |
org.apereo.cas.authentication.AuthenticationSystemSupport |
getAuthenticationSystemSupport() |
org.apereo.cas.CentralAuthenticationService |
getCentralAuthenticationService() |
org.pac4j.core.client.Clients |
getClients() |
static java.util.Optional<org.springframework.web.servlet.ModelAndView> |
hasDelegationRequestFailed(javax.servlet.http.HttpServletRequest request,
int status)
Determine if request has errors.
|
protected void |
prepareForLoginPage(org.springframework.webflow.execution.RequestContext context)
Prepare the data for the login page.
|
void |
setAuthenticationSystemSupport(org.apereo.cas.authentication.AuthenticationSystemSupport authenticationSystemSupport) |
void |
setCentralAuthenticationService(org.apereo.cas.CentralAuthenticationService centralAuthenticationService) |
void |
setClients(org.pac4j.core.client.Clients clients) |
public static final java.lang.String STOP_WEBFLOW
public static final java.lang.String STOP
public static final java.lang.String CLIENT_ACTION
public static final java.lang.String PAC4J_URLS
public static final java.lang.String VIEW_ID_STOP_WEBFLOW
public ClientAction(org.apereo.cas.configuration.CasConfigurationProperties casProperties)
casProperties - the cas propertiesprotected org.springframework.webflow.execution.Event doExecute(org.springframework.webflow.execution.RequestContext context)
throws java.lang.Exception
doExecute in class org.springframework.webflow.action.AbstractActionjava.lang.Exceptionprotected void prepareForLoginPage(org.springframework.webflow.execution.RequestContext context)
throws org.pac4j.core.exception.HttpAction
context - The current webflow contextorg.pac4j.core.exception.HttpAction - the http actionpublic org.pac4j.core.client.Clients getClients()
public void setClients(org.pac4j.core.client.Clients clients)
public org.apereo.cas.CentralAuthenticationService getCentralAuthenticationService()
public void setCentralAuthenticationService(org.apereo.cas.CentralAuthenticationService centralAuthenticationService)
public org.apereo.cas.authentication.AuthenticationSystemSupport getAuthenticationSystemSupport()
public void setAuthenticationSystemSupport(org.apereo.cas.authentication.AuthenticationSystemSupport authenticationSystemSupport)
public static java.util.Optional<org.springframework.web.servlet.ModelAndView> hasDelegationRequestFailed(javax.servlet.http.HttpServletRequest request,
int status)
request - the requeststatus - the status