public class StandardAuthenticationEntryPoint extends Object implements org.springframework.security.web.AuthenticationEntryPoint
| Modifier and Type | Field and Description |
|---|---|
private static ApplicationCookieService |
applicationCookieService |
protected static String |
AUTHENTICATE_HEADER |
protected static String |
BEARER_HEADER |
private org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationEntryPoint |
bearerTokenAuthenticationEntryPoint |
protected static String |
EXPIRED_JWT |
private static String |
ROOT_PATH |
protected static String |
SESSION_EXPIRED |
protected static String |
UNAUTHORIZED |
| Constructor and Description |
|---|
StandardAuthenticationEntryPoint(org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationEntryPoint bearerTokenAuthenticationEntryPoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
commence(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException exception)
Commence exception handling with handling for OAuth2 Authentication Exceptions using Bearer Token implementation
|
private String |
getErrorMessage(javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException exception) |
private void |
removeAuthorizationBearerCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
private void |
sendErrorMessage(javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException exception) |
protected static final String AUTHENTICATE_HEADER
protected static final String BEARER_HEADER
protected static final String UNAUTHORIZED
protected static final String EXPIRED_JWT
protected static final String SESSION_EXPIRED
private static final String ROOT_PATH
private static final ApplicationCookieService applicationCookieService
private final org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationEntryPoint bearerTokenAuthenticationEntryPoint
public StandardAuthenticationEntryPoint(org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationEntryPoint bearerTokenAuthenticationEntryPoint)
public void commence(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException exception)
throws IOException
commence in interface org.springframework.security.web.AuthenticationEntryPointrequest - HTTP Servlet Requestresponse - HTTP Servlet Responseexception - Authentication ExceptionIOException - Thrown on response processing failuresprivate void sendErrorMessage(javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException exception)
throws IOException
IOExceptionprivate String getErrorMessage(javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)
private void removeAuthorizationBearerCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Copyright © 2023 Apache NiFi Project. All rights reserved.