Repositories ​
- Type
- Class
- Namespace
- craft\oauth
- Inherits
- craft\oauth\Repositories
- Implements
League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface,League\OAuth2\Server\Repositories\AuthCodeRepositoryInterface,League\OAuth2\Server\Repositories\ClientRepositoryInterface,League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface,League\OAuth2\Server\Repositories\ScopeRepositoryInterface
OAuth client and credential storage for a resource. Rows are shared by all resources, as in Laravel Passport: a client belongs to the resources its scopes cover, and a credential to the resource that owns its scopes.
Public Methods ​
__construct() ​
Arguments ​
$resource
finalizeScopes() ​
Arguments ​
$scopes$grantType$clientEntity$userIdentifier$authCodeId
getClientEntity() ​
Arguments ​
$clientIdentifier
getNewAuthCode() ​
getNewRefreshToken() ​
getNewToken() ​
Arguments ​
$clientEntity$scopes$userIdentifier
getScopeEntityByIdentifier() ​
Arguments ​
$identifier
isAccessTokenRevoked() ​
Arguments ​
$tokenId
isAuthCodeRevoked() ​
Arguments ​
$codeId
isRefreshTokenRevoked() ​
Arguments ​
$tokenId
persistNewAccessToken() ​
Arguments ​
$accessTokenEntity
persistNewAuthCode() ​
Arguments ​
$authCodeEntity
persistNewRefreshToken() ​
Arguments ​
$refreshTokenEntity
revokeAccessToken() ​
Arguments ​
$tokenId
revokeAuthCode() ​
Arguments ​
$codeId
revokeRefreshToken() ​
Arguments ​
$tokenId
validateClient() ​
Arguments ​
$clientIdentifier$clientSecret$grantType