mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-13 07:12:38 +05:30
25 lines
609 B
PHP
25 lines
609 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* OAuth 2.0 Access token storage interface
|
||
|
*
|
||
|
* @package php-loep/oauth2-server
|
||
|
* @author Alex Bilbie <hello@alexbilbie.com>
|
||
|
* @copyright Copyright (c) 2013 PHP League of Extraordinary Packages
|
||
|
* @license http://mit-license.org/
|
||
|
* @link http://github.com/php-loep/oauth2-server
|
||
|
*/
|
||
|
|
||
|
namespace League\OAuth2\Server\Storage;
|
||
|
|
||
|
interface AccessTokenInterface
|
||
|
{
|
||
|
public function getToken($token);
|
||
|
|
||
|
public function getTokenScopes($token);
|
||
|
|
||
|
public function createAccessToken($token, $expireTime, $sessionId);
|
||
|
|
||
|
public function associateScope($token, $scopeId);
|
||
|
}
|