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