Backplane. McpProtocol. Server. Authorization. WellKnown
(backplane_mcp_protocol v1.6.3)
Copy Markdown
Plug serving the RFC 9728 protected resource metadata document.
Responds to GET /.well-known/oauth-protected-resource with the JSON
metadata document describing this resource server's OAuth 2.1 configuration.
This plug is automatically handled by both
Backplane.McpProtocol.Server.Transport.StreamableHTTP.Plug and
Backplane.McpProtocol.Server.Transport.SSE.Plug when authorization is configured.
It can also be mounted independently in a Phoenix router or Plug pipeline.
Standalone Usage
forward "/.well-known/oauth-protected-resource",
to: Backplane.McpProtocol.Server.Authorization.WellKnown,
authorization_config: my_auth_config