diff --git a/src/OAuth.php b/src/OAuth.php new file mode 100644 index 0000000..1ed9ce3 --- /dev/null +++ b/src/OAuth.php @@ -0,0 +1,35 @@ + true, + )); + $server->addGrantType(new AuthorizationCode($storage)); + $server->addGrantType(new ClientCredentials($storage)); + $server->addGrantType(new UserCredentials($storage)); + $server->addGrantType(new RefreshToken($storage)); + return $server; + } +} diff --git a/src/Storage.php b/src/Storage.php index e196761..8399b6d 100644 --- a/src/Storage.php +++ b/src/Storage.php @@ -14,7 +14,7 @@ use OAuth2\Storage\RefreshTokenInterface; use OAuth2\Storage\ScopeInterface; use OAuth2\Storage\UserCredentialsInterface; -abstract class Storage implements +class Storage implements AuthorizationCodeInterface, AccessTokenInterface, ClientCredentialsInterface,