diff --git a/src/LtiTool.php b/src/LtiTool.php index 8bc959a..4458e0a 100644 --- a/src/LtiTool.php +++ b/src/LtiTool.php @@ -41,12 +41,12 @@ public function __construct($dataConnector = null) parent::__construct($dataConnector); parent::$defaultTool = $this; - $this->signatureMethod = config('lti.lti13.signature_method'); - $this->kid = config('lti.lti13.key_id'); - $this->rsaKey = config('lti.lti13.rsa_private_key'); - $this->requiredScopes = config('lti.lti13.required_scopes'); + $this->signatureMethod = config('lti.lti13.signature_method', ''); + $this->kid = config('lti.lti13.key_id', ''); + $this->rsaKey = config('lti.lti13.rsa_private_key', ''); + $this->requiredScopes = config('lti.lti13.required_scopes', []); - if (config('lti.lti13.auto_register_deployment_id')) { + if (config('lti.lti13.auto_register_deployment_id', false)) { $this->createDeploymentIdFromExistingPlatform(); } }