Added getScopes and setScopes methods to IdentityProvider.
Signed-off-by: Isern Palaus <ipalaus@ipalaus.com>1.0
parent
ed42479b9f
commit
94f27933d4
|
@ -46,6 +46,16 @@ abstract class IdentityProvider {
|
||||||
|
|
||||||
abstract public function userDetails($response, \League\OAuth2\Client\Token\AccessToken $token);
|
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())
|
public function getAuthorizationUrl($options = array())
|
||||||
{
|
{
|
||||||
$state = md5(uniqid(rand(), true));
|
$state = md5(uniqid(rand(), true));
|
||||||
|
|
Loading…
Reference in New Issue