Commit aaa19d1
Changed files (5)
lib/saml/kit/authentication_request.rb
@@ -24,10 +24,6 @@ module Saml
#end
end
- def issuer
- to_h[name]['Issuer']
- end
-
def name_id_format
to_h[name]['NameIDPolicy']['Format']
end
lib/saml/kit/document.rb
@@ -19,6 +19,10 @@ module Saml
to_h.fetch(name, {}).fetch('ID', nil)
end
+ def issuer
+ to_h.fetch(name, {}).fetch('Issuer', nil)
+ end
+
def to_h
@xml_hash
end
lib/saml/kit/logout_request.rb
@@ -12,10 +12,6 @@ module Saml
super(xml, name: "LogoutRequest", query_string_parameter: 'SAMLRequest')
end
- def issuer
- to_h[name]['Issuer']
- end
-
def issue_instant
to_h[name]['IssueInstant']
end
lib/saml/kit/logout_response.rb
@@ -13,10 +13,6 @@ module Saml
to_h[name]['Version']
end
- def issuer
- to_h[name]['Issuer']
- end
-
def status_code
to_h[name]['Status']['StatusCode']['Value']
end
lib/saml/kit/response.rb
@@ -28,10 +28,6 @@ module Saml
to_h.fetch(name, {}).fetch('Assertion', {}).fetch('Subject', {}).fetch('NameID', nil)
end
- def issuer
- to_h.fetch(name, {}).fetch('Issuer', nil)
- end
-
def status_code
to_h.fetch(name, {}).fetch('Status', {}).fetch('StatusCode', {}).fetch('Value', nil)
end