From 94f27933d4ce54374f1a2aff56c99c1db821970c Mon Sep 17 00:00:00 2001 From: Isern Palaus Date: Tue, 22 Oct 2013 15:57:22 +0200 Subject: [PATCH] Added getScopes and setScopes methods to IdentityProvider. Signed-off-by: Isern Palaus --- src/League/OAuth2/Client/Provider/IdentityProvider.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/League/OAuth2/Client/Provider/IdentityProvider.php b/src/League/OAuth2/Client/Provider/IdentityProvider.php index 28bb106..92a95b7 100644 --- a/src/League/OAuth2/Client/Provider/IdentityProvider.php +++ b/src/League/OAuth2/Client/Provider/IdentityProvider.php @@ -46,6 +46,16 @@ abstract class IdentityProvider { abstract public function userDetails($response, \League\OAuth2\Client\Token\AccessToken $token); + public function getScopes() + { + return $this->scopes; + } + + public function setScopes(array $scopes) + { + $this->scopes = $scopes; + } + public function getAuthorizationUrl($options = array()) { $state = md5(uniqid(rand(), true));