From 0c30b9ca66bc009572119ccca803902e0792be22 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Thu, 21 Mar 2013 16:22:29 +0000 Subject: [PATCH] Added scopeParamRequired method --- src/OAuth2/AuthServer.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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