diff --git a/docs/providers/thirdparty.md b/docs/providers/thirdparty.md index aeabd759..e4d2703e 100755 --- a/docs/providers/thirdparty.md +++ b/docs/providers/thirdparty.md @@ -74,6 +74,7 @@ Gateway | Composer Package | Maintainer [Imgur](https://github.com/adam-paterson/oauth2-imgur) | adam-paterson/oauth2-imgur | [Adam Paterson](https://github.com/adam-paterson) [Jira](https://packagist.org/packages/mrjoops/oauth2-jira) | mrjoops/oauth2-jira | [Alexandre Lahure](https://github.com/mrjoops) [Keycloak](https://github.com/stevenmaguire/oauth2-keycloak) | stevenmaguire/oauth2-keycloak | [Steven Maguire](https://github.com/stevenmaguire) +[Keycloak](https://github.com/cloudcogsio/oauth2-keycloak) | cloudcogsio/oauth2-keycloak | [Cloudcogs.io](https://github.com/cloudcogsio) [Linode](https://packagist.org/packages/webinarium/oauth2-linode) | webinarium/oauth2-linode | [Artem Rodygin](https://github.com/webinarium) [Mailchimp](https://github.com/chadhutchins/oauth2-mailchimp) | chadhutchins/oauth2-mailchimp | [Chad Hutchins](https://github.com/chadhutchins) [Mail.ru](https://packagist.org/packages/aego/oauth2-mailru) | aego/oauth2-mailru | [Alexey](https://github.com/rakeev) diff --git a/src/Provider/AbstractProvider.php b/src/Provider/AbstractProvider.php index d1679998..e175d157 100644 --- a/src/Provider/AbstractProvider.php +++ b/src/Provider/AbstractProvider.php @@ -289,7 +289,7 @@ abstract public function getBaseAccessTokenUrl(array $params); * @param AccessToken $token * @return string */ - abstract public function getResourceOwnerDetailsUrl(AccessToken $token); + abstract public function getResourceOwnerDetailsUrl(AccessTokenInterface $token); /** * Returns a new random string to use as the state parameter in an @@ -754,7 +754,7 @@ protected function createAccessToken(array $response, AbstractGrant $grant) * @param AccessToken $token * @return ResourceOwnerInterface */ - abstract protected function createResourceOwner(array $response, AccessToken $token); + abstract protected function createResourceOwner(array $response, AccessTokenInterface $token); /** * Requests and returns the resource owner of given access token. @@ -762,7 +762,7 @@ abstract protected function createResourceOwner(array $response, AccessToken $to * @param AccessToken $token * @return ResourceOwnerInterface */ - public function getResourceOwner(AccessToken $token) + public function getResourceOwner(AccessTokenInterface $token) { $response = $this->fetchResourceOwnerDetails($token); @@ -775,7 +775,7 @@ public function getResourceOwner(AccessToken $token) * @param AccessToken $token * @return mixed */ - protected function fetchResourceOwnerDetails(AccessToken $token) + protected function fetchResourceOwnerDetails(AccessTokenInterface $token) { $url = $this->getResourceOwnerDetailsUrl($token);