Class AuthenticationSuccessHandler
java.lang.Object
org.opencastproject.kernel.security.AuthenticationSuccessHandler
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationSuccessHandler
public class AuthenticationSuccessHandler
extends Object
implements org.springframework.security.web.authentication.AuthenticationSuccessHandler
Sends authenticated users to one of the configured welcome pages after login.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) Sets the security servicevoidsetWelcomePages(Map<String, String> welcomePages) Sets the welcome pages mapping.
-
Field Details
-
WILDCARD
The wildcard role matcher for welcome pages- See Also:
-
ROOT
The root resource- See Also:
-
-
Constructor Details
-
AuthenticationSuccessHandler
public AuthenticationSuccessHandler()
-
-
Method Details
-
onAuthenticationSuccess
public void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws IOException - Specified by:
onAuthenticationSuccessin interfaceorg.springframework.security.web.authentication.AuthenticationSuccessHandler- Throws:
IOException- See Also:
-
setSecurityService
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService) Sets the security service- Parameters:
securityService- the security service
-
setWelcomePages
Sets the welcome pages mapping.- Parameters:
welcomePages- the welcomePages to set
-