Class 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 Detail

      • ApiCrumbExclusion

        public ApiCrumbExclusion()
    • Method Detail

      • process

        public boolean process​(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response,
                               javax.servlet.FilterChain chain)
                        throws IOException,
                               javax.servlet.ServletException
        Description copied from class: CrumbExclusion
        This method is called for every incoming POST request.
        Specified by:
        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
        javax.servlet.ServletException