ClientRegistrationController
class ClientRegistrationController
Traits
Methods
Render authorization errors after rollback using the validated interaction context.
Create the dynamic client registration endpoint.
Require explicit provisioning scope when a caller supplies an access token.
Reject provisioning credentials with their protocol's status and challenge.
Persist validated metadata using the authenticated user's client relation when present.
Details
in
HandlesOAuthErrors at line 25
protected mixed
withErrorHandling(Closure $callback)
Perform the given callback with exception handling.
in
HandlesOAuthErrors at line 42
protected mixed
withAuthorizationErrorHandling(Closure $callback, array $pending, AuthorizationResponse $responses)
Render authorization errors after rollback using the validated interaction context.
at line 36
__construct(ClientMetadataValidator $metadata, ServerFactory $servers, AuthManager $auth, Repository $config, AuthenticationChallenge $challenges)
Create the dynamic client registration endpoint.
at line 48
JsonResponse
store(Request $request)
Register a client and return its effective metadata and new credentials.
at line 112
protected AccessToken|null
provisioningToken(Request $request)
Require explicit provisioning scope when a caller supplies an access token.
at line 146
protected HttpResponseException
bearerChallenge(Request $request, string|null $error = null, Throwable|null $previous = null)
Reject provisioning credentials with their protocol's status and challenge.
at line 167
protected Client
createClient(array $metadata, array $scopes, AccessToken|null $token, Request $request)
Persist validated metadata using the authenticated user's client relation when present.