Commit eb0714f
Changed files (5)
lib/saml/kit/authentication_request.rb
@@ -12,10 +12,6 @@ module Saml
super(xml, name: "AuthnRequest", query_string_parameter: 'SAMLRequest')
end
- def destination
- to_h[name]['Destination']
- end
-
def acs_url
#if signed? && trusted?
to_h[name]['AssertionConsumerServiceURL'] || registered_acs_url
lib/saml/kit/document.rb
@@ -27,6 +27,10 @@ module Saml
to_h.fetch(name, {}).fetch('Version', {})
end
+ def destination
+ to_h.fetch(name, {}).fetch('Destination', nil)
+ end
+
def to_h
@xml_hash
end
lib/saml/kit/logout_request.rb
@@ -16,10 +16,6 @@ module Saml
to_h[name]['IssueInstant']
end
- def destination
- to_h[name]['Destination']
- end
-
def name_id
to_h[name]['NameID']
end
lib/saml/kit/logout_response.rb
@@ -17,10 +17,6 @@ module Saml
to_h[name]['InResponseTo']
end
- def destination
- to_h[name]['Destination']
- end
-
private
class Builder
lib/saml/kit/response.rb
@@ -42,9 +42,6 @@ module Saml
end].with_indifferent_access
end
- def destination
- to_h.fetch(name, {}).fetch('Destination', nil)
- end
def started_at
parse_date(to_h.fetch(name, {}).fetch('Assertion', {}).fetch('Conditions', {}).fetch('NotBefore', nil))