Package org.apache.nifi.web.security
Class StandardAuthenticationEntryPoint
java.lang.Object
org.apache.nifi.web.security.StandardAuthenticationEntryPoint
- All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint
public class StandardAuthenticationEntryPoint
extends Object
implements org.springframework.security.web.AuthenticationEntryPoint
Standard Authentication Entry Point delegates to Bearer Authentication Entry Point and performs additional processing
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ApplicationCookieServiceprotected static final Stringprotected static final Stringprivate final org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationEntryPointprotected static final Stringprivate static final Stringprotected static final Stringprotected static final String -
Constructor Summary
ConstructorsConstructorDescriptionStandardAuthenticationEntryPoint(org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationEntryPoint bearerTokenAuthenticationEntryPoint) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) Commence exception handling with handling for OAuth2 Authentication Exceptions using Bearer Token implementationprivate StringgetErrorMessage(jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) private voidremoveAuthorizationBearerCookie(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) private voidsendErrorMessage(jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)
-
Field Details
-
AUTHENTICATE_HEADER
- See Also:
-
BEARER_HEADER
- See Also:
-
UNAUTHORIZED
- See Also:
-
EXPIRED_JWT
- See Also:
-
SESSION_EXPIRED
- See Also:
-
ROOT_PATH
- See Also:
-
applicationCookieService
-
bearerTokenAuthenticationEntryPoint
private final org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationEntryPoint bearerTokenAuthenticationEntryPoint
-
-
Constructor Details
-
StandardAuthenticationEntryPoint
public StandardAuthenticationEntryPoint(org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationEntryPoint bearerTokenAuthenticationEntryPoint)
-
-
Method Details
-
commence
public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) throws IOException Commence exception handling with handling for OAuth2 Authentication Exceptions using Bearer Token implementation- Specified by:
commencein interfaceorg.springframework.security.web.AuthenticationEntryPoint- Parameters:
request- HTTP Servlet Requestresponse- HTTP Servlet Responseexception- Authentication Exception- Throws:
IOException- Thrown on response processing failures
-
sendErrorMessage
private void sendErrorMessage(jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) throws IOException - Throws:
IOException
-
getErrorMessage
private String getErrorMessage(jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) -
removeAuthorizationBearerCookie
private void removeAuthorizationBearerCookie(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
-