public class DrillSpnegoAuthenticator
extends org.eclipse.jetty.security.authentication.SpnegoAuthenticator
Constructor and Description |
---|
DrillSpnegoAuthenticator(String authMethod) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.jetty.server.UserIdentity |
login(String username,
Object password,
javax.servlet.ServletRequest request) |
org.eclipse.jetty.server.Authentication |
validateRequest(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
boolean mandatoryAuth)
Updated logic as compared to default implementation in
SpnegoAuthenticator.validateRequest(ServletRequest, ServletResponse, boolean) to handle below cases:
1) Perform SPNEGO authentication only when spnegoLogin resource is requested. |
getAuthMethod, secureResponse
public DrillSpnegoAuthenticator(String authMethod)
public org.eclipse.jetty.server.Authentication validateRequest(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, boolean mandatoryAuth) throws org.eclipse.jetty.security.ServerAuthException
SpnegoAuthenticator.validateRequest(ServletRequest, ServletResponse, boolean)
to handle below cases:
1) Perform SPNEGO authentication only when spnegoLogin resource is requested. This helps to avoid authentication
for each and every resource which the JETTY provided authenticator does.
2) Helps to redirect to the target URL after authentication is done successfully.
3) Clear-Up in memory session information once LogOut is triggered such that any future request also triggers SPNEGO
authentication.validateRequest
in interface org.eclipse.jetty.security.Authenticator
validateRequest
in class org.eclipse.jetty.security.authentication.SpnegoAuthenticator
request
- response
- mandatoryAuth
- org.eclipse.jetty.security.ServerAuthException
Copyright © 1970 The Apache Software Foundation. All rights reserved.