From 7516606fd3cfe723cedefd0149dee855b944ef5d Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Wed, 7 May 2014 17:10:52 +0100 Subject: [PATCH] Set default token type as bearer for Resource Server --- src/AuthorizationServer.php | 1 + src/ResourceServer.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/AuthorizationServer.php b/src/AuthorizationServer.php index 0b172687..eb94c6b7 100644 --- a/src/AuthorizationServer.php +++ b/src/AuthorizationServer.php @@ -77,6 +77,7 @@ class AuthorizationServer extends AbstractServer { $this->storages = []; + // Set Bearer as the default token type $this->setTokenType(new Bearer); return $this; diff --git a/src/ResourceServer.php b/src/ResourceServer.php index 49859205..c58df1f7 100644 --- a/src/ResourceServer.php +++ b/src/ResourceServer.php @@ -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; }