final | |
|---|---|
readonly | |
implements |
RequestHandlerInterface |
Serves this MCP server's Protected Resource Metadata document, the record a client reads to learn which
authorization servers issue tokens for it. Route it at both /.well-known/oauth-protected-resource{/path} and /.well-known/oauth-protected-resource,
and name the same URL in BearerAuthenticationMiddleware's challenges. Any other path is answered 404.
| Methods | ||
|---|---|---|
public
|
__construct(
string $resource,
list<non-empty-string> $authorizationServers,
ResponseFactoryInterface $responseFactory,
StreamFactoryInterface $streamFactory,
list<non-empty-string> $scopesSupported = [],
null|non-empty-string $resourceName = null,
)
|
# |
public
|
handle(ServerRequestInterface $request): ResponseInterface
|
# |