Package hudson.cli
Class CliCrumbExclusion
java.lang.Object
hudson.security.csrf.CrumbExclusion
hudson.cli.CliCrumbExclusion
- All Implemented Interfaces:
ExtensionPoint
@Extension
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class)
public class CliCrumbExclusion
extends CrumbExclusion
Makes CLI HTTP fallback work with CSRF protection enabled (JENKINS-18114).
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
process
(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
-
CliCrumbExclusion
public CliCrumbExclusion()
-
-
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 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:
IOException
jakarta.servlet.ServletException
-