diff --git a/src/OAuth2/AuthServer.php b/src/OAuth2/AuthServer.php index e717506e..534a816c 100644 --- a/src/OAuth2/AuthServer.php +++ b/src/OAuth2/AuthServer.php @@ -210,6 +210,15 @@ class AuthServer $this->defaultScope = $default; } + /** + * Default scope to be used if none is provided and requireScopeParam is false + * @return string|null + */ + public function getDefaultScope() + { + return $this->defaultScope; + } + /** * Require the "state" paremter in checkAuthoriseParams() * @param boolean $require