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 Summary
ConstructorsConstructorDescriptionBearerResourceMetadataTokenAuthenticationEntryPoint(ResourceIdentifier resourceIdentifier) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException)
-
Constructor Details
-
BearerResourceMetadataTokenAuthenticationEntryPoint
-
-
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:
commencein interfaceorg.springframework.security.web.AuthenticationEntryPoint- Throws:
IOExceptionjakarta.servlet.ServletException
-