OAuth2AuthCodeRepository
in package
implements
AuthCodeRepositoryInterface
OAuth2 Authorization Code Repository
認可コードの管理を行う(データベース永続化)
Table of Contents
Interfaces
- AuthCodeRepositoryInterface
Properties
- $authCodesTable : Oauth2AuthCodesTable
- OAuth2AuthCodes Table
Methods
- __construct() : mixed
- コンストラクタ
- cleanExpiredCodes() : int
- 期限切れの認可コードをクリーンアップ
- getAuthorizationCode() : array<string|int, mixed>|null
- 認可コードを取得
- getNewAuthCode() : AuthCodeEntityInterface
- 新しい認可コードエンティティを作成
- isAuthCodeRevoked() : bool
- 認可コードが無効化されているかチェック
- persistNewAuthCode() : void
- 認可コードを永続化
- revokeAuthCode() : void
- 認可コードを無効化
- storeAuthorizationCode() : void
- 認可コードを保存(OAuth2Controller から呼び出される)
Properties
$authCodesTable
OAuth2AuthCodes Table
private
Oauth2AuthCodesTable
$authCodesTable
Methods
__construct()
コンストラクタ
public
__construct() : mixed
cleanExpiredCodes()
期限切れの認可コードをクリーンアップ
public
cleanExpiredCodes() : int
Return values
int —削除された件数
getAuthorizationCode()
認可コードを取得
public
getAuthorizationCode(string $code) : array<string|int, mixed>|null
Parameters
- $code : string
Return values
array<string|int, mixed>|nullgetNewAuthCode()
新しい認可コードエンティティを作成
public
getNewAuthCode() : AuthCodeEntityInterface
Return values
AuthCodeEntityInterfaceisAuthCodeRevoked()
認可コードが無効化されているかチェック
public
isAuthCodeRevoked(string $codeId) : bool
Parameters
- $codeId : string
Return values
boolpersistNewAuthCode()
認可コードを永続化
public
persistNewAuthCode(AuthCodeEntityInterface $authCodeEntity) : void
Parameters
- $authCodeEntity : AuthCodeEntityInterface
revokeAuthCode()
認可コードを無効化
public
revokeAuthCode(string $codeId) : void
Parameters
- $codeId : string
storeAuthorizationCode()
認可コードを保存(OAuth2Controller から呼び出される)
public
storeAuthorizationCode(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>