mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Fix tests as no longer set the default scope in the constructor
Use new setDefaultScope() method instead. Also changed default scope to be a blank string instead of null
This commit is contained in:
@@ -73,7 +73,7 @@ class AuthorizationServer implements EmitterAwareInterface
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $defaultScope = null;
|
||||
private $defaultScope = '';
|
||||
|
||||
/**
|
||||
* New server instance.
|
||||
@@ -209,4 +209,14 @@ class AuthorizationServer implements EmitterAwareInterface
|
||||
|
||||
return $this->responseType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the default scope for the authorization server.
|
||||
*
|
||||
* @param string $defaultScope
|
||||
*/
|
||||
public function setDefaultScope($defaultScope)
|
||||
{
|
||||
$this->defaultScope = $defaultScope;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user