ConsentRepository
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.
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.
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.
at line 108
protected array
mergePermissions(array $previous, array $presented, array $approved)
Replace presented choices without discarding unrelated approvals.
at line 116
void
revokeCredentials(Consent $consent)
Revoke credentials while the caller holds the consent's transaction and row lock.