Class JwtBearerTokenCrumbExclusion
java.lang.Object
hudson.security.csrf.CrumbExclusion
io.jenkins.plugins.jwt.auth.filter.JwtBearerTokenCrumbExclusion
- All Implemented Interfaces:
ExtensionPoint
A JWT bearer token that exclude requested from Crumb that contains a valid signed JWT token.
Pinned to a higher-than-default ordinal so it runs before other CrumbExclusions that may
consume the request themselves (notably the mcp-server Endpoint). Otherwise a competing
exclusion could handle a request carrying an invalid/expired Bearer token as anonymous, bypassing
the RFC 6750 401 challenge issued by ProtectedResourceChallengeFilter.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprocess(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse, jakarta.servlet.FilterChain chain) Methods inherited from class CrumbExclusion
all, process
-
Constructor Details
-
JwtBearerTokenCrumbExclusion
public JwtBearerTokenCrumbExclusion()
-
-
Method Details
-
process
public boolean process(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Overrides:
processin classCrumbExclusion- Throws:
IOExceptionjakarta.servlet.ServletException
-