Permalink
Browse files

Merge pull request #39 from mdestagnol/master

IOAuth2GrantImplicit and IOAuth2GrantClient implementations in OAuthStorage
  • Loading branch information...
2 parents 3bde6a2 + 45d649d commit 6a6b08ce3ba5341bc6338abfbbbb1959a657f804 @willdurand willdurand committed Apr 20, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 Storage/OAuthStorage.php
View
9 Storage/OAuthStorage.php
@@ -22,9 +22,11 @@
use OAuth2\IOAuth2RefreshTokens;
use OAuth2\IOAuth2GrantUser;
use OAuth2\IOAuth2GrantCode;
+use OAuth2\IOAuth2GrantImplicit;
+use OAuth2\IOAuth2GrantClient;
use OAuth2\Model\IOAuth2Client;
-class OAuthStorage implements IOAuth2RefreshTokens, IOAuth2GrantUser, IOAuth2GrantCode
+class OAuthStorage implements IOAuth2RefreshTokens, IOAuth2GrantUser, IOAuth2GrantCode, IOAuth2GrantImplicit, IOAuth2GrantClient
{
/**
* @var \FOS\OAuthServerBundle\Model\ClientManagerInterface
@@ -89,6 +91,11 @@ public function checkClientCredentials(IOAuth2Client $client, $client_secret = n
return $client->checkSecret($client_secret);
}
+
+ public function checkClientCredentialsGrant(IOAuth2Client $client, $client_secret)
+ {
+ return $this->checkClientCredentials($client, $client_secret);
+ }
public function getAccessToken($token)
{

0 comments on commit 6a6b08c

Please sign in to comment.