mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-28 16:00:24 +05:30
Add default scope to the AbstractAuthorizeGrant
This commit is contained in:
parent
ab760a805c
commit
42ea0de9fb
@ -13,6 +13,11 @@ namespace League\OAuth2\Server\Grant;
|
|||||||
|
|
||||||
abstract class AbstractAuthorizeGrant extends AbstractGrant
|
abstract class AbstractAuthorizeGrant extends AbstractGrant
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $defaultScope = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $uri
|
* @param string $uri
|
||||||
* @param array $params
|
* @param array $params
|
||||||
@ -26,4 +31,12 @@ abstract class AbstractAuthorizeGrant extends AbstractGrant
|
|||||||
|
|
||||||
return $uri . http_build_query($params);
|
return $uri . http_build_query($params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $scope
|
||||||
|
*/
|
||||||
|
public function setDefaultScope($scope)
|
||||||
|
{
|
||||||
|
$this->defaultScope = $scope;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user