mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-10 22:02:05 +05:30
Set the default token type as Bearer
This commit is contained in:
parent
0b047fd8e4
commit
6300cd5d72
@ -18,6 +18,7 @@ use League\OAuth2\Server\Storage\AuthCodeInterface;
|
|||||||
use League\OAuth2\Server\Storage\RefreshTokenInterface;
|
use League\OAuth2\Server\Storage\RefreshTokenInterface;
|
||||||
use League\OAuth2\Server\Storage\SessionInterface;
|
use League\OAuth2\Server\Storage\SessionInterface;
|
||||||
use League\OAuth2\Server\Storage\ScopeInterface;
|
use League\OAuth2\Server\Storage\ScopeInterface;
|
||||||
|
use League\OAuth2\Server\TokenType\Bearer;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -76,6 +77,8 @@ class AuthorizationServer extends AbstractServer
|
|||||||
{
|
{
|
||||||
$this->storages = [];
|
$this->storages = [];
|
||||||
|
|
||||||
|
$this->setTokenType(new Bearer);
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user