Class AnkaLabelsApiCrumbExclusion

java.lang.Object
hudson.security.csrf.CrumbExclusion
com.veertu.plugin.anka.AnkaLabelsApiCrumbExclusion
All Implemented Interfaces:
ExtensionPoint

@Extension public class AnkaLabelsApiCrumbExclusion extends CrumbExclusion
Allows POST to the labels API without a CSRF crumb (token auth replaces crumb). Applies to /anka-build-cloud/labels/... so unconfigured paths reach Stapler and are not routed (404) instead of failing CSRF (403).
  • Constructor Details

    • AnkaLabelsApiCrumbExclusion

      public AnkaLabelsApiCrumbExclusion()
  • 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
      Overrides:
      process in class CrumbExclusion
      Throws:
      IOException
      jakarta.servlet.ServletException