Commit 0858b2b

mo <mo@mokhan.ca>
2018-03-09 21:50:15
try to parse the request id.
1 parent e4de147
Changed files (1)
lib
saml
kit
builders
lib/saml/kit/builders/response.rb
@@ -54,7 +54,7 @@ module Saml
             xmlns: Namespaces::PROTOCOL,
           }
           options[:Destination] = destination if destination.present?
-          options[:InResponseTo] = request.id if request.present?
+          options[:InResponseTo] = request.try(:id) if request.present?
           options
         end
       end