Skip to content

Commit

Permalink
Update LtiTool.php
Browse files Browse the repository at this point in the history
provide config defaults
  • Loading branch information
chrispittman committed Mar 28, 2024
1 parent 4c92f40 commit 6e20db3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/LtiTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 6e20db3

Please sign in to comment.