lib/saml/kit/concerns/xml_templatable.rb in saml-kit-1.0.24 vs lib/saml/kit/concerns/xml_templatable.rb in saml-kit-1.0.25
- old
+ new
@@ -18,9 +18,10 @@
# Returns true if an embedded signature is requested and at least one
# signing certificate is available via the configuration.
def sign?
return configuration.sign? if embed_signature.nil?
+
(embed_signature && configuration.sign?) ||
(embed_signature && signing_key_pair.present?)
end
def digest_method