Commit b266206
Changed files (4)
lib
lib/saml/kit/document.rb
@@ -35,6 +35,10 @@ module Saml
to_h.fetch(name, {}).fetch('Destination', nil)
end
+ def issue_instant
+ to_h[name]['IssueInstant']
+ end
+
def expected_type?
return false if to_xml.blank?
to_h[name].present?
lib/saml/kit/logout_request.rb
@@ -8,10 +8,6 @@ module Saml
super(xml, name: "LogoutRequest")
end
- def issue_instant
- to_h[name]['IssueInstant']
- end
-
def name_id
to_h[name]['NameID']
end
lib/saml/kit/logout_response.rb
@@ -47,7 +47,7 @@ module Saml
{
xmlns: Namespaces::PROTOCOL,
ID: "_#{id}",
- Version: "2.0",
+ Version: version,
IssueInstant: now.utc.iso8601,
Destination: destination,
InResponseTo: request.id,
lib/saml/kit/respondable.rb
@@ -21,10 +21,6 @@ module Saml
to_h.fetch(name, {}).fetch('InResponseTo', nil)
end
- def issue_instant
- to_h[name]['IssueInstant']
- end
-
private
def must_match_request_id