@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Extension public class BasicHeaderApiTokenAuthenticator extends BasicHeaderAuthenticator
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
BasicHeaderApiTokenAuthenticator() |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.core.Authentication |
authenticate2(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse rsp,
String username,
String password)
Note: if the token does not exist or does not match, we do not use
SecurityListener.fireFailedToAuthenticate(String)
because it will be done in the BasicHeaderRealPasswordAuthenticator in the case the password is not valid either |
all, authenticate
public org.springframework.security.core.Authentication authenticate2(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp, String username, String password) throws javax.servlet.ServletException
SecurityListener.fireFailedToAuthenticate(String)
because it will be done in the BasicHeaderRealPasswordAuthenticator
in the case the password is not valid eitherauthenticate2
in class BasicHeaderAuthenticator
javax.servlet.ServletException
Copyright © 2004–2022. All rights reserved.