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

FIX: add `idp_cert_multi` in hash format with `signing` key. (#74)

This commit already added in a brach and deployed to a client before. https://github.com/discourse/discourse-saml/commit/ddeb2615529eb0f9cac9621e247feebf31e65fee
parent 79f52a7a
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ class SamlAuthenticator < ::Auth::ManagedAuthenticator
idp_cert_fingerprint: setting(:cert_fingerprint).presence,
idp_cert_fingerprint_algorithm: setting(:cert_fingerprint_algorithm),
idp_cert: setting(:cert).presence,
idp_cert_multi: setting(:cert_multi).presence,
idp_cert_multi: idp_cert_multi,
request_attributes: request_attributes,
attribute_statements: attribute_statements,
assertion_consumer_service_url: SamlAuthenticator.saml_base_url + "/auth/#{name}/callback",
......@@ -357,6 +357,15 @@ class SamlAuthenticator < ::Auth::ManagedAuthenticator
private
def idp_cert_multi
return unless setting(:cert_multi).present?
{
signing: [setting(:cert_multi)],
encryption: []
}
end
def resolve_name(name, username, email)
return name if name.present?
......
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