Skip to content
Snippets Groups Projects
Unverified Commit 128f4e75 authored by Vinoth Kannan's avatar Vinoth Kannan Committed by GitHub
Browse files

DEV: include original certificate in `idp_cert_multi` variable. (#75)

And add a option to add multiple certificates in site setting with "|" separator.
parent c25ec3bd
No related branches found
No related tags found
No related merge requests found
...@@ -360,8 +360,11 @@ class SamlAuthenticator < ::Auth::ManagedAuthenticator ...@@ -360,8 +360,11 @@ class SamlAuthenticator < ::Auth::ManagedAuthenticator
def idp_cert_multi def idp_cert_multi
return unless setting(:cert_multi).present? return unless setting(:cert_multi).present?
certificates = setting(:cert_multi).split('|')
certificates.push(setting(:cert)) if setting(:cert).present?
{ {
signing: [setting(:cert_multi)], signing: certificates,
encryption: [] encryption: []
} }
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment