Package jenkins.security
Class ApiCrumbExclusion
java.lang.Object
hudson.security.csrf.CrumbExclusion
jenkins.security.ApiCrumbExclusion
- All Implemented Interfaces:
 ExtensionPoint
@Symbol("apiToken")
@Extension
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class)
public class ApiCrumbExclusion
extends CrumbExclusion
JENKINS-22474: Makes API Token calls bypass CSRF protection to ease usage
- 
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanprocess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain chain) This method is called for every incoming POST request.Methods inherited from class hudson.security.csrf.CrumbExclusion
all, process 
- 
Constructor Details
- 
ApiCrumbExclusion
public ApiCrumbExclusion() 
 - 
 - 
Method Details
- 
process
public boolean process(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException Description copied from class:CrumbExclusionThis method is called for every incoming POST request.- Overrides:
 processin classCrumbExclusion- Returns:
 - true to indicate that the callee had processed this request (for example by reporting an error, or by executing the rest of the chain.)
 - Throws:
 IOExceptionjakarta.servlet.ServletException
 
 -