Merge pull request #28 from ipalaus/feature/scopes

Added getScopes and setScopes methods to IdentityProvider.
1.0
Alex Bilbie 2013-10-22 07:09:57 -07:00
commit 8335c7f0fb
1 changed files with 10 additions and 0 deletions

View File

@ -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));