final | |
|---|---|
readonly | |
implements |
MiddlewareInterface |
Makes the MCP endpoint an OAuth 2.1 resource server, handing what it validated to handlers on
ServerContext::$receiveContext->authInfo.
| Methods | ||
|---|---|---|
public
|
__construct(
AccessTokenValidatorInterface $validator,
string $resource,
string $resourceMetadataUrl,
ResponseFactoryInterface $responseFactory,
list<non-empty-string> $requiredScopes = [],
int<0, max> $expiryLeewaySeconds = 0,
Clock $clock = new SystemClock(),
)
|
# |
public
|
process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
|
# |