We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 603f97e commit e58c126Copy full SHA for e58c126
1 file changed
lib/ruby_saml/settings.rb
@@ -375,13 +375,13 @@ def get_all_sp_certs
375
def validate_sp_certs_params!
376
has_multi = sp_cert_multi && !sp_cert_multi.empty?
377
has_pk = private_key && !private_key.empty?
378
- if has_multi && (has_cert?(certificate) || has_cert?(certificate_new) || has_pk)
+ if has_multi && (cert?(certificate) || cert?(certificate_new) || has_pk)
379
raise ArgumentError.new("Cannot specify both sp_cert_multi and certificate, certificate_new, private_key parameters")
380
end
381
382
383
# Check if a certificate is present.
384
- def has_cert?(cert)
+ def cert?(cert)
385
return true if cert.is_a?(OpenSSL::X509::Certificate)
386
387
cert && !cert.empty?
0 commit comments