mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-02 00:43:11 +05:30
23 lines
402 B
PHP
23 lines
402 B
PHP
|
<?php
|
||
|
|
||
|
namespace LeagueTests\Stubs;
|
||
|
|
||
|
class StubAbstractGrant extends \League\OAuth2\Server\Grant\AbstractGrant
|
||
|
{
|
||
|
protected $responseType = 'foobar';
|
||
|
|
||
|
public function completeFlow()
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
public function getAccessTokenTTL()
|
||
|
{
|
||
|
return $this->accessTokenTTL;
|
||
|
}
|
||
|
|
||
|
public function getAuthorizationServer()
|
||
|
{
|
||
|
return $this->server;
|
||
|
}
|
||
|
}
|