diff options
| author | Francis Chuang <francis.chuang@gmail.com> | 2013-01-23 06:40:40 +0400 |
|---|---|---|
| committer | Brent Shaffer <bshafs@gmail.com> | 2013-01-26 04:04:38 +0400 |
| commit | 0a779eb9baef7bd3881cb9341fa74b0beef0d64b (patch) | |
| tree | 979e3b16743d11edefb256738c56745c642d6e18 /src | |
| parent | c88eb9ffdf768b4dda46268d1c7358f2873e51c0 (diff) | |
| download | oauth2-server-php-0a779eb9baef7bd3881cb9341fa74b0beef0d64b.tar.xz | |
Remove check for the ClientCredentials storage type because grant types that uses ClientAssertionType does not require it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/OAuth2/Server.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/OAuth2/Server.php b/src/OAuth2/Server.php index 51c8eb9..59a0c43 100644 --- a/src/OAuth2/Server.php +++ b/src/OAuth2/Server.php @@ -140,9 +140,7 @@ class OAuth2_Server implements OAuth2_Controller_AccessControllerInterface, public function getGrantController() { if (is_null($this->grantController)) { - if (!isset($this->storages['client_credentials'])) { - throw new LogicException("You must supply a storage object implementing OAuth2_Storage_ClientCredentialsInterface to use the grant server"); - } + if (is_null($this->accessTokenResponseType)) { if (isset($this->responseTypes['access_token'])) { $this->accessTokenResponseType = $this->responseTypes['access_token']; |
