summaryrefslogtreecommitdiff
path: root/lib/saml/kit/response.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/saml/kit/response.rb')
-rw-r--r--lib/saml/kit/response.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/saml/kit/response.rb b/lib/saml/kit/response.rb
index 31907ca..baf7df7 100644
--- a/lib/saml/kit/response.rb
+++ b/lib/saml/kit/response.rb
@@ -43,9 +43,8 @@ module Saml
def must_be_valid_assertion
assertion.valid?
- assertion.errors.each do |attribute, error|
- attribute = :assertion if attribute == :base
- errors.add(attribute, error)
+ assertion.each_error do |attribute, error|
+ errors.add(attribute == :base ? :assertion : attribute, error)
end
end