Class BearerResourceMetadataTokenAuthenticationEntryPoint

java.lang.Object
org.springaicommunity.mcp.security.server.oauth2.authentication.BearerResourceMetadataTokenAuthenticationEntryPoint
All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint

public final class BearerResourceMetadataTokenAuthenticationEntryPoint extends Object implements org.springframework.security.web.AuthenticationEntryPoint
Entrypoint wrapping a BearerTokenAuthenticationEntryPoint and ensuring the resource_metadata contains the path of the request. Should be removed after PR #18542 is released.
Author:
Joe Grandja, Daniel Garnier-Moiroux
See Also:
  • Constructor Details

    • BearerResourceMetadataTokenAuthenticationEntryPoint

      public BearerResourceMetadataTokenAuthenticationEntryPoint(ResourceIdentifier resourceIdentifier)
  • Method Details

    • commence

      public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) throws IOException, jakarta.servlet.ServletException
      Specified by:
      commence in interface org.springframework.security.web.AuthenticationEntryPoint
      Throws:
      IOException
      jakarta.servlet.ServletException