Package org.dspace.saml2
Class DSpaceSamlAuthenticationSuccessHandler
java.lang.Object
org.dspace.saml2.DSpaceSamlAuthenticationSuccessHandler
- All Implemented Interfaces:
AuthenticationSuccessHandler
public class DSpaceSamlAuthenticationSuccessHandler
extends Object
implements AuthenticationSuccessHandler
Handler for a successful SAML authentication. Note that this is not a successful DSpace login,
only a successful login with a SAML identity provider. This handler initiates a DSpace login
attempt, using the identity information received from the SAML IdP.
- Author:
- Ray Lee
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonAuthenticationSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Authentication authentication) When a SAML authentication succeeds: Extract attributes from the assertion, and map them into request attributes using the mapping configured for the relying party that initiated the login. Forward the request to the DSpace SAML authentication endpoint.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.web.authentication.AuthenticationSuccessHandler
onAuthenticationSuccess
-
Field Details
-
configurationService
-
-
Constructor Details
-
DSpaceSamlAuthenticationSuccessHandler
public DSpaceSamlAuthenticationSuccessHandler()
-
-
Method Details
-
onAuthenticationSuccess
public void onAuthenticationSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Authentication authentication) throws IOException, jakarta.servlet.ServletException When a SAML authentication succeeds:- Extract attributes from the assertion, and map them into request attributes using the mapping configured for the relying party that initiated the login.
- Forward the request to the DSpace SAML authentication endpoint.
- Specified by:
onAuthenticationSuccessin interfaceAuthenticationSuccessHandler- Throws:
IOExceptionjakarta.servlet.ServletException- See Also:
-