Skip to content

Commit

Permalink
Use samlidp config value for cert and key names when performing SAML …
Browse files Browse the repository at this point in the history
…sign on
  • Loading branch information
upwebdesign committed Oct 29, 2020
1 parent 5dd46a6 commit cc7e6cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/PerformsSingleSignOn.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ trait PerformsSingleSignOn
protected function init()
{
$this->issuer = url(config('samlidp.issuer_uri'));
$this->certificate = (new X509Certificate)->loadPem(Storage::disk('samlidp')->get('cert.pem'));
$this->private_key = Storage::disk('samlidp')->get('key.pem');
$this->certificate = (new X509Certificate)->loadPem(Storage::disk('samlidp')->get(config('samlidp.certname', 'cert.pem')));
$this->private_key = Storage::disk('samlidp')->get(config('samlidp.keyname', 'key.pem'));
$this->private_key = KeyHelper::createPrivateKey($this->private_key, '', false, XMLSecurityKey::RSA_SHA256);
}

Expand Down

0 comments on commit cc7e6cd

Please sign in to comment.