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 ApplicationCookieService
protected static final String
protected static final String
private final org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationEntryPoint
protected static final String
private static final String
protected static final String
protected static final String
-
Constructor Summary
ConstructorsConstructorDescriptionStandardAuthenticationEntryPoint
(org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationEntryPoint bearerTokenAuthenticationEntryPoint) -
Method Summary
Modifier and TypeMethodDescriptionvoid
commence
(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 String
getErrorMessage
(jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) private void
removeAuthorizationBearerCookie
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) private void
sendErrorMessage
(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:
commence
in 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)
-