mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-18 17:42:54 +05:30
PSR fixes
This commit is contained in:
parent
d0b2498b43
commit
c56562b0b8
@ -11,8 +11,7 @@
|
|||||||
|
|
||||||
namespace League\OAuth2\Server\Storage;
|
namespace League\OAuth2\Server\Storage;
|
||||||
|
|
||||||
use League\OAuth2\Server\Entity\AccessTokenInterface;
|
use League\OAuth2\Server\Entity\AccessTokenEntity;
|
||||||
use League\OAuth2\Server\Entity\MacKeyInterface;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MacTokenInterface
|
* MacTokenInterface
|
||||||
@ -21,15 +20,16 @@ interface MacTokenInterface extends StorageInterface
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Create a MAC key linked to an access token
|
* Create a MAC key linked to an access token
|
||||||
* @param string $macKey
|
* @param string $macKey
|
||||||
* @param \League\OAuth2\Server\Entity\AccessTokenInterface $accessToken
|
* @param \League\OAuth2\Server\Entity\AccessTokenEntity $accessTokenEntity
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function create($macKey, AccessTokenInterface $accessToken);
|
public function create($macKey, AccessTokenEntity $accessTokenEntity);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a MAC key by access token
|
* Get a MAC key by access token
|
||||||
* @param string $accessToken
|
* @param string $accessToken
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getByAccessToken($accessToken);
|
public function getByAccessToken($accessToken);
|
||||||
}
|
}
|
||||||
|
@ -120,8 +120,8 @@ class MAC extends AbstractTokenType implements TokenTypeInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Prevent timing attack
|
* Prevent timing attack
|
||||||
* @param string $knownString
|
* @param string $knownString
|
||||||
* @param string $userString
|
* @param string $userString
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
private function hash_equals($knownString, $userString)
|
private function hash_equals($knownString, $userString)
|
||||||
@ -144,4 +144,4 @@ class MAC extends AbstractTokenType implements TokenTypeInterface
|
|||||||
|
|
||||||
return hash_equals($knownString, $userString);
|
return hash_equals($knownString, $userString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user