Skip to content

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.

View source

Public Methods ​

MethodDescription
__construct()
finalizeScopes()
getClientEntity()
getNewAuthCode()
getNewRefreshToken()
getNewToken()
getScopeEntityByIdentifier()
isAccessTokenRevoked()
isAuthCodeRevoked()
isRefreshTokenRevoked()
persistNewAccessToken()
persistNewAuthCode()
persistNewRefreshToken()
revokeAccessToken()
revokeAuthCode()
revokeRefreshToken()
validateClient()

__construct() ​

View source

Arguments ​

  • $resource

finalizeScopes() ​

View source

Arguments ​

  • $scopes
  • $grantType
  • $clientEntity
  • $userIdentifier
  • $authCodeId

getClientEntity() ​

View source

Arguments ​

  • $clientIdentifier

getNewAuthCode() ​

View source

getNewRefreshToken() ​

View source

getNewToken() ​

View source

Arguments ​

  • $clientEntity
  • $scopes
  • $userIdentifier

getScopeEntityByIdentifier() ​

View source

Arguments ​

  • $identifier

isAccessTokenRevoked() ​

View source

Arguments ​

  • $tokenId

isAuthCodeRevoked() ​

View source

Arguments ​

  • $codeId

isRefreshTokenRevoked() ​

View source

Arguments ​

  • $tokenId

persistNewAccessToken() ​

View source

Arguments ​

  • $accessTokenEntity

persistNewAuthCode() ​

View source

Arguments ​

  • $authCodeEntity

persistNewRefreshToken() ​

View source

Arguments ​

  • $refreshTokenEntity

revokeAccessToken() ​

View source

Arguments ​

  • $tokenId

revokeAuthCode() ​

View source

Arguments ​

  • $codeId

revokeRefreshToken() ​

View source

Arguments ​

  • $tokenId

validateClient() ​

View source

Arguments ​

  • $clientIdentifier
  • $clientSecret
  • $grantType