Skip to content

Commit

Permalink
added alogrithm
Browse files Browse the repository at this point in the history
  • Loading branch information
joisarjignesh committed Feb 13, 2024
1 parent af0970d commit db73e55
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"homepage": "https://github.com/joisarjignesh/bigbluebutton",
"license": "MIT",
"version": "v2.6",
"version": "v2.7",
"type": "library",
"authors": [
{
Expand Down Expand Up @@ -70,4 +70,4 @@
}
}
}
}
}
5 changes: 5 additions & 0 deletions config/bigbluebutton.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
'BBB_SECURITY_SALT' => env('BBB_SECURITY_SALT', ''),
'BBB_SERVER_BASE_URL' => env('BBB_SERVER_BASE_URL', ''),

/*
* available hash algorithm sha1,sha256,sha512,sha384
*/
'hash_algorithm' => 'sha1',

/**
* For Multiple BigBlueButton Server Configurations
* For Each server you must be specify salt and url with define server name
Expand Down
2 changes: 1 addition & 1 deletion src/Bigbluebutton.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct($bbbServerBaseUrl, $securitySecret, $transport = nul
{
$this->bbbServerBaseUrl = Str::finish(trim($bbbServerBaseUrl), '/');
$this->securitySecret = trim($securitySecret);
$this->urlBuilder = new UrlBuilder($this->securitySecret, $this->bbbServerBaseUrl);
$this->urlBuilder = new UrlBuilder($this->securitySecret, $this->bbbServerBaseUrl, config("bigbluebutton.hash_algorithm", "sha1"));
$this->transport = $transport ?? CurlTransport::createWithDefaultOptions();
}
}

0 comments on commit db73e55

Please sign in to comment.