PATH:
home
/
lab2454c
/
costbloc.com
/
vendor
/
laravel
/
passport
/
src
/
Bridge
<?php namespace Laravel\Passport\Bridge; use Laravel\Passport\Passport; use League\OAuth2\Server\Entities\AuthCodeEntityInterface; use League\OAuth2\Server\Repositories\AuthCodeRepositoryInterface; class AuthCodeRepository implements AuthCodeRepositoryInterface { use FormatsScopesForStorage; /** * {@inheritdoc} */ public function getNewAuthCode() { return new AuthCode; } /** * {@inheritdoc} */ public function persistNewAuthCode(AuthCodeEntityInterface $authCodeEntity) { $attributes = [ 'id' => $authCodeEntity->getIdentifier(), 'user_id' => $authCodeEntity->getUserIdentifier(), 'client_id' => $authCodeEntity->getClient()->getIdentifier(), 'scopes' => $this->formatScopesForStorage($authCodeEntity->getScopes()), 'revoked' => false, 'expires_at' => $authCodeEntity->getExpiryDateTime(), ]; Passport::authCode()->forceFill($attributes)->save(); } /** * {@inheritdoc} */ public function revokeAuthCode($codeId) { Passport::authCode()->where('id', $codeId)->update(['revoked' => true]); } /** * {@inheritdoc} */ public function isAuthCodeRevoked($codeId) { return Passport::authCode()->where('id', $codeId)->where('revoked', 1)->exists(); } }
[-] AccessTokenRepository.php
[edit]
[-] UserRepository.php
[edit]
[-] AuthCode.php
[edit]
[-] FormatsScopesForStorage.php
[edit]
[+]
..
[-] Scope.php
[edit]
[-] RefreshTokenRepository.php
[edit]
[-] Client.php
[edit]
[-] AccessToken.php
[edit]
[-] ClientRepository.php
[edit]
[-] RefreshToken.php
[edit]
[-] AuthCodeRepository.php
[edit]
[-] PersonalAccessGrant.php
[edit]
[-] User.php
[edit]
[-] ScopeRepository.php
[edit]