Class AuthenticationFilter

java.lang.Object
oracle.kubernetes.operator.rest.BaseDebugLoggingFilter
oracle.kubernetes.operator.rest.AuthenticationFilter
All Implemented Interfaces:
javax.ws.rs.container.ContainerRequestFilter

@Provider
@PreMatching
@Priority(1000)
public class AuthenticationFilter
extends BaseDebugLoggingFilter
implements javax.ws.rs.container.ContainerRequestFilter
AuthenticationFilter authenticates the request by extracting the access token from tha authorization header and using it to construct a RestBackend impl for this request. It stores the RestBackend in as a request property so that the jaxrs resource impls can call the backend to get their work done.

The backend impl is responsible for authenticating the token (if it can't then it throws a WebApplicationException) and storing info about the authenticated user so that it can do access checks for this request later.