ClientRepository
Less than 1 minute
ClientRepository
Storage for registered OAuth clients.
interface ClientRepositoryImplement this against whatever persistence an application already uses and bind it via the oauth.server.clients config key. Hazaar\OAuth\Store\DBI\ClientRepository provides a ready-to-use DBI-backed implementation.
Methods
__construct
Construct the repository.
public __construct(array $config): voidParameters
| Parameter | Type | Description |
|---|---|---|
$config | array |
find
Looks up a registered client by its client_id.
public find(string $clientId): ?ClientReturns: Hazaar\OAuth\Client
Parameters
| Parameter | Type | Description |
|---|---|---|
$clientId | string |
save
Persists a client record.
public save(Client $client): voidReturns: void
Called by /register (RFC 7591 dynamic client registration) with a newly-minted client; implementations should treat clientId as the primary key and insert or overwrite accordingly.
Parameters
| Parameter | Type | Description |
|---|---|---|
$client | Hazaar\OAuth\Client |
Generated by Hazaar API Doc Generator on Sun, 23 Aug 2026 10:49:43 +0000