diff options
| -rw-r--r-- | lib/saml/kit/core_ext/signature.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/saml/kit/core_ext/signature.rb b/lib/saml/kit/core_ext/signature.rb index 889b025..4d73ed8 100644 --- a/lib/saml/kit/core_ext/signature.rb +++ b/lib/saml/kit/core_ext/signature.rb @@ -5,7 +5,7 @@ module Saml 'Digest Value' => ->(x) { x.digest_value }, 'Expected Digest Value' => ->(x) { x.expected_digest_value }, 'Digest Method' => ->(x) { x.digest_method }, - 'Signature Value' => ->(x) { x.truncate(signature_value) }, + 'Signature Value' => ->(x) { x.truncate(x.signature_value) }, 'Signature Method' => ->(x) { x.signature_method }, 'Canonicalization Method' => ->(x) { x.canonicalization_method }, }.freeze @@ -18,8 +18,6 @@ module Saml table.push(['', certificate.x509.to_text]) end - private - def truncate(text, max: 50) text.length >= max ? "#{text[0..max]}..." : text end |
