class DynamicClientRegistration

Traits

Properties

protected int $maxOAuthResponseSize from  InteractsWithOAuthEndpoints

Methods

oAuthRequest()

Prepare a buffered OAuth request without following redirects.

resolveOAuthDestination(PendingRequest $request, string $url)

Validate and pin an OAuth endpoint within the prepared request's limits.

bool
isLocalhost(string $host)

Determine whether the normalized host names a local development endpoint.

string
normalizedHost(string $host)

Normalize the host consistently with destination validation.

__construct(AuthServerDiscovery $discovery = new AuthServerDiscovery())

Create a new dynamic client registration instance.

register(string $registrationEndpoint, string $redirectUri, string|null $scope = null, string $clientName = 'Hypervel MCP Client', string $applicationType = 'web', TokenEndpointAuthMethod $tokenEndpointAuthMethod = TokenEndpointAuthMethod::ClientSecretPost)

Register a client with the authorization server.

Details

protected PendingRequest oAuthRequest()

Prepare a buffered OAuth request without following redirects.

Return Value

PendingRequest

protected ResolvedDestination resolveOAuthDestination(PendingRequest $request, string $url)

Validate and pin an OAuth endpoint within the prepared request's limits.

Parameters

PendingRequest $request
string $url

Return Value

ResolvedDestination

protected bool isLocalhost(string $host)

Determine whether the normalized host names a local development endpoint.

Parameters

string $host

Return Value

bool

protected string normalizedHost(string $host)

Normalize the host consistently with destination validation.

Parameters

string $host

Return Value

string

at line 18
__construct(AuthServerDiscovery $discovery = new AuthServerDiscovery())

Create a new dynamic client registration instance.

Parameters

AuthServerDiscovery $discovery

at line 25
ClientRegistration register(string $registrationEndpoint, string $redirectUri, string|null $scope = null, string $clientName = 'Hypervel MCP Client', string $applicationType = 'web', TokenEndpointAuthMethod $tokenEndpointAuthMethod = TokenEndpointAuthMethod::ClientSecretPost)

Register a client with the authorization server.

Parameters

string $registrationEndpoint
string $redirectUri
string|null $scope
string $clientName
string $applicationType
TokenEndpointAuthMethod $tokenEndpointAuthMethod

Return Value

ClientRegistration