Merge pull request #28 from ipalaus/feature/scopes
Added getScopes and setScopes methods to IdentityProvider.1.0
commit
8335c7f0fb
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue