mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-17 10:39:45 +05:30
45 lines
944 B
PHP
45 lines
944 B
PHP
|
<?php
|
||
|
/**
|
||
|
* OAuth 2.0 Client credentials grant
|
||
|
*
|
||
|
* @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\Grant;
|
||
|
|
||
|
trait GrantTrait {
|
||
|
|
||
|
/**
|
||
|
* Return the identifier
|
||
|
* @return string
|
||
|
*/
|
||
|
public function getIdentifier()
|
||
|
{
|
||
|
return $this->identifier;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Return the response type
|
||
|
* @return string
|
||
|
*/
|
||
|
public function getResponseType()
|
||
|
{
|
||
|
return $this->responseType;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Override the default access token expire time
|
||
|
* @param int $accessTokenTTL
|
||
|
* @return self
|
||
|
*/
|
||
|
public function setAccessTokenTTL($accessTokenTTL)
|
||
|
{
|
||
|
$this->accessTokenTTL = $accessTokenTTL;
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
}
|