mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 09:47:46 +05:30
Set default token type as bearer for Resource Server
This commit is contained in:
parent
e4c43faa33
commit
7516606fd3
@ -77,6 +77,7 @@ class AuthorizationServer extends AbstractServer
|
||||
{
|
||||
$this->storages = [];
|
||||
|
||||
// Set Bearer as the default token type
|
||||
$this->setTokenType(new Bearer);
|
||||
|
||||
return $this;
|
||||
|
@ -61,6 +61,9 @@ class ResourceServer extends AbstractServer
|
||||
$scopeStorage->setServer($this);
|
||||
$this->setStorage('scope', $scopeStorage);
|
||||
|
||||
// Set Bearer as the default token type
|
||||
$this->setTokenType(new Bearer);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user