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
  • 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: CrumbExclusion
      This method is called for every incoming POST request.
      Overrides:
      process in class CrumbExclusion
      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:
      IOException
      jakarta.servlet.ServletException