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 Constructor Description ApiCrumbExclusion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)
This method is called for every incoming POST request.-
Methods inherited from class hudson.security.csrf.CrumbExclusion
all
-
-
-
-
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 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
javax.servlet.ServletException
-
-