Set default token type as bearer for Resource Server

This commit is contained in:
Alex Bilbie 2014-05-07 17:10:52 +01:00
parent e4c43faa33
commit 7516606fd3
2 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,7 @@ class AuthorizationServer extends AbstractServer
{ {
$this->storages = []; $this->storages = [];
// Set Bearer as the default token type
$this->setTokenType(new Bearer); $this->setTokenType(new Bearer);
return $this; return $this;

View File

@ -61,6 +61,9 @@ class ResourceServer extends AbstractServer
$scopeStorage->setServer($this); $scopeStorage->setServer($this);
$this->setStorage('scope', $scopeStorage); $this->setStorage('scope', $scopeStorage);
// Set Bearer as the default token type
$this->setTokenType(new Bearer);
return $this; return $this;
} }