ClientRepository
class ClientRepository
Methods
Get an active client by the given ID.
Get the latest active personal access client for the given user provider.
Store a new client.
Store a new personal access token client.
Store a new client credentials grant client.
Store a new device authorization grant client.
Store a new authorization code grant client.
Details
at line 18
Client|null
find(string|int $id)
Get a client by the given ID.
at line 38
Client|null
findActive(string|int $id)
Get an active client by the given ID.
at line 48
protected bool
allowsClient(Client $client)
Determine whether the current request may use the client.
at line 61
Client
personalAccessClient(string $provider)
Get the latest active personal access client for the given user provider.
at line 88
protected Client
create(string $name, array $grantTypes, array $redirectUris = [], string|null $provider = null, bool $confidential = true, Authenticatable|null $user = null)
Store a new client.
at line 116
Client
createPersonalAccessGrantClient(string $name, string|null $provider = null)
Store a new personal access token client.
at line 126
Client
createClientCredentialsGrantClient(string $name)
Store a new client credentials grant client.
at line 138
Client
createDeviceAuthorizationGrantClient(string $name, bool $confidential = true, Authenticatable|null $user = null)
Store a new device authorization grant client.
at line 159
Client
createAuthorizationCodeGrantClient(string $name, array $redirectUris, bool $confidential = true, Authenticatable|null $user = null, bool $enableDeviceFlow = false)
Store a new authorization code grant client.
at line 180
bool
regenerateSecret(Client $client)
Regenerate the client secret.