mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-01 16:33:07 +05:30
Merge pull request #323 from rdohms/interface-docs
Updated Interface Docs
This commit is contained in:
commit
51184259d1
@ -24,7 +24,7 @@ interface AccessTokenInterface extends StorageInterface
|
|||||||
*
|
*
|
||||||
* @param string $token The access token
|
* @param string $token The access token
|
||||||
*
|
*
|
||||||
* @return \League\OAuth2\Server\Entity\AccessTokenEntity
|
* @return \League\OAuth2\Server\Entity\AccessTokenEntity | null
|
||||||
*/
|
*/
|
||||||
public function get($token);
|
public function get($token);
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ interface AccessTokenInterface extends StorageInterface
|
|||||||
*
|
*
|
||||||
* @param \League\OAuth2\Server\Entity\AccessTokenEntity $token The access token
|
* @param \League\OAuth2\Server\Entity\AccessTokenEntity $token The access token
|
||||||
*
|
*
|
||||||
* @return array Array of \League\OAuth2\Server\Entity\ScopeEntity
|
* @return \League\OAuth2\Server\Entity\ScopeEntity[] Array of \League\OAuth2\Server\Entity\ScopeEntity
|
||||||
*/
|
*/
|
||||||
public function getScopes(AccessTokenEntity $token);
|
public function getScopes(AccessTokenEntity $token);
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ interface AuthCodeInterface extends StorageInterface
|
|||||||
*
|
*
|
||||||
* @param string $code
|
* @param string $code
|
||||||
*
|
*
|
||||||
* @return \League\OAuth2\Server\Entity\AuthCodeEntity
|
* @return \League\OAuth2\Server\Entity\AuthCodeEntity | null
|
||||||
*/
|
*/
|
||||||
public function get($code);
|
public function get($code);
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ interface AuthCodeInterface extends StorageInterface
|
|||||||
*
|
*
|
||||||
* @param \League\OAuth2\Server\Entity\AuthCodeEntity $token The auth code
|
* @param \League\OAuth2\Server\Entity\AuthCodeEntity $token The auth code
|
||||||
*
|
*
|
||||||
* @return array Array of \League\OAuth2\Server\Entity\ScopeEntity
|
* @return \League\OAuth2\Server\Entity\ScopeEntity[] Array of \League\OAuth2\Server\Entity\ScopeEntity
|
||||||
*/
|
*/
|
||||||
public function getScopes(AuthCodeEntity $token);
|
public function getScopes(AuthCodeEntity $token);
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ interface ClientInterface extends StorageInterface
|
|||||||
* @param string $redirectUri The client's redirect URI (default = "null")
|
* @param string $redirectUri The client's redirect URI (default = "null")
|
||||||
* @param string $grantType The grant type used (default = "null")
|
* @param string $grantType The grant type used (default = "null")
|
||||||
*
|
*
|
||||||
* @return \League\OAuth2\Server\Entity\ClientEntity
|
* @return \League\OAuth2\Server\Entity\ClientEntity | null
|
||||||
*/
|
*/
|
||||||
public function get($clientId, $clientSecret = null, $redirectUri = null, $grantType = null);
|
public function get($clientId, $clientSecret = null, $redirectUri = null, $grantType = null);
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ interface ClientInterface extends StorageInterface
|
|||||||
*
|
*
|
||||||
* @param \League\OAuth2\Server\Entity\SessionEntity $session The session
|
* @param \League\OAuth2\Server\Entity\SessionEntity $session The session
|
||||||
*
|
*
|
||||||
* @return \League\OAuth2\Server\Entity\ClientEntity
|
* @return \League\OAuth2\Server\Entity\ClientEntity | null
|
||||||
*/
|
*/
|
||||||
public function getBySession(SessionEntity $session);
|
public function getBySession(SessionEntity $session);
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ interface RefreshTokenInterface extends StorageInterface
|
|||||||
*
|
*
|
||||||
* @param string $token
|
* @param string $token
|
||||||
*
|
*
|
||||||
* @return \League\OAuth2\Server\Entity\RefreshTokenEntity
|
* @return \League\OAuth2\Server\Entity\RefreshTokenEntity | null
|
||||||
*/
|
*/
|
||||||
public function get($token);
|
public function get($token);
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ interface ScopeInterface extends StorageInterface
|
|||||||
* @param string $grantType The grant type used in the request (default = "null")
|
* @param string $grantType The grant type used in the request (default = "null")
|
||||||
* @param string $clientId The client sending the request (default = "null")
|
* @param string $clientId The client sending the request (default = "null")
|
||||||
*
|
*
|
||||||
* @return \League\OAuth2\Server\Entity\ScopeEntity
|
* @return \League\OAuth2\Server\Entity\ScopeEntity | null
|
||||||
*/
|
*/
|
||||||
public function get($scope, $grantType = null, $clientId = null);
|
public function get($scope, $grantType = null, $clientId = null);
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ interface SessionInterface extends StorageInterface
|
|||||||
*
|
*
|
||||||
* @param \League\OAuth2\Server\Entity\AccessTokenEntity $accessToken The access token
|
* @param \League\OAuth2\Server\Entity\AccessTokenEntity $accessToken The access token
|
||||||
*
|
*
|
||||||
* @return \League\OAuth2\Server\Entity\SessionEntity
|
* @return \League\OAuth2\Server\Entity\SessionEntity | null
|
||||||
*/
|
*/
|
||||||
public function getByAccessToken(AccessTokenEntity $accessToken);
|
public function getByAccessToken(AccessTokenEntity $accessToken);
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ interface SessionInterface extends StorageInterface
|
|||||||
*
|
*
|
||||||
* @param \League\OAuth2\Server\Entity\AuthCodeEntity $authCode The auth code
|
* @param \League\OAuth2\Server\Entity\AuthCodeEntity $authCode The auth code
|
||||||
*
|
*
|
||||||
* @return \League\OAuth2\Server\Entity\SessionEntity
|
* @return \League\OAuth2\Server\Entity\SessionEntity | null
|
||||||
*/
|
*/
|
||||||
public function getByAuthCode(AuthCodeEntity $authCode);
|
public function getByAuthCode(AuthCodeEntity $authCode);
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ interface SessionInterface extends StorageInterface
|
|||||||
*
|
*
|
||||||
* @param \League\OAuth2\Server\Entity\SessionEntity
|
* @param \League\OAuth2\Server\Entity\SessionEntity
|
||||||
*
|
*
|
||||||
* @return array Array of \League\OAuth2\Server\Entity\ScopeEntity
|
* @return \League\OAuth2\Server\Entity\ScopeEntity[] Array of \League\OAuth2\Server\Entity\ScopeEntity
|
||||||
*/
|
*/
|
||||||
public function getScopes(SessionEntity $session);
|
public function getScopes(SessionEntity $session);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user