public
|
__construct(
string $resource,
AuthorizationOptions $options,
null|UserAuthorizationInterface $userAuthorization,
HttpClientBuilder $clientBuilder,
null|TokenStoreInterface $tokens = null,
null|ClientRegistrationStoreInterface $registrations = null,
LoggerInterface $logger = new NullLogger(),
null|GrantStrategyInterface $grantStrategy = null,
null|Semaphore $lock = null,
Clock $clock = new SystemClock(),
)
Parameters
| $resource |
Absolute URL of the MCP endpoint this client talks to
|
| $userAuthorization |
Puts the resource owner in front of the authorization server on the authorization-code grant. null when a grant strategy runs instead
|
| $clientBuilder |
Builds the inner clients. Credentialed traffic runs on a derived client that never follows a redirect, so a hop can be refused before the credential travels
|
| $tokens |
Defaults to a store that lives only as long as the process
|
| $registrations |
Defaults to a store that lives only as long as the process
|
| $grantStrategy |
An unattended grant run in place of the authorization-code round trip
|
| $lock |
Serialises grants and renewals, defaulting to one that spans this process only
|
| $clock |
Reads the time expiries are stamped and checked against
|
|
#
|