From cc7e6cd45b65c4eda5be06afb16c6ee2032d3768 Mon Sep 17 00:00:00 2001 From: Jesse Vista Date: Thu, 29 Oct 2020 08:52:36 -0400 Subject: [PATCH] Use samlidp config value for cert and key names when performing SAML sign on --- src/Traits/PerformsSingleSignOn.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Traits/PerformsSingleSignOn.php b/src/Traits/PerformsSingleSignOn.php index 141c456..f544c91 100644 --- a/src/Traits/PerformsSingleSignOn.php +++ b/src/Traits/PerformsSingleSignOn.php @@ -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); }