"Authentication is enabled and user is not specified. Specify user.name parameter");
"Authentication is enabled and user is not specified. Specify user.name parameter");
...
@@ -159,9 +309,202 @@ public class AtlasAuthenticationFilter extends AuthenticationFilter {
...
@@ -159,9 +309,202 @@ public class AtlasAuthenticationFilter extends AuthenticationFilter {
}
}
/**
* This method is copied from hadoop auth lib, code added for error handling and fallback to other auth methods
*
* If the request has a valid authentication token it allows the request to continue to the target resource,
* otherwise it triggers an authentication sequence using the configured {@link org.apache.hadoop.security.authentication.server.AuthenticationHandler}.
*
* @param request the request object.
* @param response the response object.
* @param filterChain the filter chain object.
*
* @throws IOException thrown if an IO error occurred.
* @throws ServletException thrown if a processing error occurred.