diff --git a/src/OAuth2/AuthServer.php b/src/OAuth2/AuthServer.php index fde15351..e717506e 100644 --- a/src/OAuth2/AuthServer.php +++ b/src/OAuth2/AuthServer.php @@ -192,6 +192,15 @@ class AuthServer $this->requireScopeParam = $require; } + /** + * Is the scope parameter required? + * @return bool + */ + public function scopeParamRequired() + { + return $this->requireScopeParam; + } + /** * Default scope to be used if none is provided and requireScopeParam is false * @var string