Set the default token type as Bearer

This commit is contained in:
Alex Bilbie 2014-05-07 17:09:34 +01:00
parent 0b047fd8e4
commit 6300cd5d72

View File

@ -18,6 +18,7 @@ use League\OAuth2\Server\Storage\AuthCodeInterface;
use League\OAuth2\Server\Storage\RefreshTokenInterface;
use League\OAuth2\Server\Storage\SessionInterface;
use League\OAuth2\Server\Storage\ScopeInterface;
use League\OAuth2\Server\TokenType\Bearer;
use Symfony\Component\HttpFoundation\Request;
/**
@ -76,6 +77,8 @@ class AuthorizationServer extends AbstractServer
{
$this->storages = [];
$this->setTokenType(new Bearer);
return $this;
}