class ConsentRepository

Methods

Consent|null
findForUser(string $clientId, string|null $provider, int|string $userId)

Find the approval for a client and its approving identity.

Consent|null
lockForUser(string $clientId, string|null $provider, int|string $userId, bool $create = true)

Begin issuance and lock an approval, optionally creating a new authorization.

void
remember(Consent $consent, array $presented, array $approved, DateInterval|null $duration)

Remember the selected permissions while holding the consent's row lock.

array
mergePermissions(array $previous, array $presented, array $approved)

Replace presented choices without discarding unrelated approvals.

void
revokeCredentials(Consent $consent)

Revoke credentials while the caller holds the consent's transaction and row lock.

Details

at line 17
Consent|null findForUser(string $clientId, string|null $provider, int|string $userId)

Find the approval for a client and its approving identity.

Parameters

string $clientId
string|null $provider
int|string $userId

Return Value

Consent|null

at line 29
Consent|null lockForUser(string $clientId, string|null $provider, int|string $userId, bool $create = true)

Begin issuance and lock an approval, optionally creating a new authorization.

Parameters

string $clientId
string|null $provider
int|string $userId
bool $create

Return Value

Consent|null

at line 58
void remember(Consent $consent, array $presented, array $approved, DateInterval|null $duration)

Remember the selected permissions while holding the consent's row lock.

Parameters

Consent $consent
array $presented
array $approved
DateInterval|null $duration

Return Value

void

at line 108
protected array mergePermissions(array $previous, array $presented, array $approved)

Replace presented choices without discarding unrelated approvals.

Parameters

array $previous
array $presented
array $approved

Return Value

array

at line 116
void revokeCredentials(Consent $consent)

Revoke credentials while the caller holds the consent's transaction and row lock.

Parameters

Consent $consent

Return Value

void