mirror of https://github.com/apache/druid.git
Fix excluded path config behavior
This commit is contained in:
parent
07f2e1e398
commit
3901047769
|
@ -230,6 +230,12 @@ public class KerberosAuthenticator implements Authenticator
|
|||
|
||||
String path = ((HttpServletRequest) request).getRequestURI();
|
||||
if (isExcluded(path)) {
|
||||
// For excluded paths that does NOT need to be autheticated.
|
||||
// set authenticated username as Anonymous
|
||||
request.setAttribute(
|
||||
AuthConfig.DRUID_AUTHENTICATION_RESULT,
|
||||
new AuthenticationResult(AuthenticationToken.ANONYMOUS.getName(), authorizerName, null)
|
||||
);
|
||||
filterChain.doFilter(request, response);
|
||||
} else {
|
||||
String clientPrincipal = null;
|
||||
|
|
Loading…
Reference in New Issue