Added getScopes and setScopes methods to IdentityProvider.

Signed-off-by: Isern Palaus <ipalaus@ipalaus.com>
1.0
Isern Palaus 2013-10-22 15:57:22 +02:00
parent ed42479b9f
commit 94f27933d4
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));