Commit 553eaf9

mo <mo@mokhan.ca>
2017-11-18 01:43:59
push up in_response_to.
1 parent 5cd2a30
lib/saml/kit/logout_response.rb
@@ -11,10 +11,6 @@ module Saml
         to_h[name]['IssueInstant']
       end
 
-      def in_response_to
-        to_h[name]['InResponseTo']
-      end
-
       private
 
       class Builder
lib/saml/kit/respondable.rb
@@ -4,6 +4,10 @@ module Saml
       def status_code
         to_h.fetch(name, {}).fetch('Status', {}).fetch('StatusCode', {}).fetch('Value', nil)
       end
+
+      def in_response_to
+        to_h.fetch(name, {}).fetch('InResponseTo', nil)
+      end
     end
   end
 end
lib/saml/kit/response.rb
@@ -22,10 +22,6 @@ module Saml
         super(xml, name: "Response", query_string_parameter: 'SAMLResponse')
       end
 
-      def in_response_to
-        to_h.fetch(name, {}).fetch('InResponseTo', nil)
-      end
-
       def name_id
         to_h.fetch(name, {}).fetch('Assertion', {}).fetch('Subject', {}).fetch('NameID', nil)
       end