diff --git a/src/Grant/AbstractAuthorizeGrant.php b/src/Grant/AbstractAuthorizeGrant.php index 7f05100c..6a8d7c07 100644 --- a/src/Grant/AbstractAuthorizeGrant.php +++ b/src/Grant/AbstractAuthorizeGrant.php @@ -13,6 +13,11 @@ namespace League\OAuth2\Server\Grant; abstract class AbstractAuthorizeGrant extends AbstractGrant { + /** + * @var string + */ + protected $defaultScope = ''; + /** * @param string $uri * @param array $params @@ -26,4 +31,12 @@ abstract class AbstractAuthorizeGrant extends AbstractGrant return $uri . http_build_query($params); } + + /** + * @param string $scope + */ + public function setDefaultScope($scope) + { + $this->defaultScope = $scope; + } }