Package org.dspace.app.rest.security
Class DSpace401AuthenticationEntryPoint
java.lang.Object
org.dspace.app.rest.security.DSpace401AuthenticationEntryPoint
- All Implemented Interfaces:
AuthenticationEntryPoint
Spring security authentication entry point to return a 401 response for unauthorized requests
This class is used in the
WebSecurityConfiguration class.-
Constructor Summary
ConstructorsConstructorDescriptionDSpace401AuthenticationEntryPoint(RestAuthenticationService restAuthenticationService) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthenticationException authException)
-
Constructor Details
-
DSpace401AuthenticationEntryPoint
-
-
Method Details
-
commence
public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthenticationException authException) throws IOException, jakarta.servlet.ServletException - Specified by:
commencein interfaceAuthenticationEntryPoint- Throws:
IOExceptionjakarta.servlet.ServletException
-