class OAuthRegisterController

Methods

__invoke(Request $request)

Register a new OAuth client for a third-party application.

void
grantMcpScope(Client $client)

Grant the MCP scope within the anonymous registration policy.

array
persistClientMetadata(Client $client, array $validated)

Persist supported client metadata.

string
resolveClientName(array $validated)

Resolve the client name, falling back to the redirect host or a default.

bool
isValidRedirectUri(string $value)

Determine whether the redirect URI uses an allowed scheme and format.

bool
isLocalhostUrl(string $url)

Determine whether the URL is an HTTP loopback callback.

array
allowedDomains()

Get the allowed redirect domains.

Details

at line 30
JsonResponse __invoke(Request $request)

Register a new OAuth client for a third-party application.

Parameters

Request $request

Return Value

JsonResponse

Exceptions

BindingResolutionException

at line 135
protected void grantMcpScope(Client $client)

Grant the MCP scope within the anonymous registration policy.

Parameters

Client $client

Return Value

void

at line 152
protected array persistClientMetadata(Client $client, array $validated)

Persist supported client metadata.

Parameters

Client $client
array $validated

Return Value

array

at line 170
protected string resolveClientName(array $validated)

Resolve the client name, falling back to the redirect host or a default.

Parameters

array $validated

Return Value

string

at line 180
protected bool isValidRedirectUri(string $value)

Determine whether the redirect URI uses an allowed scheme and format.

Parameters

string $value

Return Value

bool

at line 208
protected bool isLocalhostUrl(string $url)

Determine whether the URL is an HTTP loopback callback.

Parameters

string $url

Return Value

bool

at line 224
protected array allowedDomains()

Get the allowed redirect domains.

Return Value

array