lib/saml/kit/builders/assertion.rb in saml-kit-0.2.3 vs lib/saml/kit/builders/assertion.rb in saml-kit-0.2.4

- old
+ new

@@ -3,11 +3,11 @@ module Builders class Assertion include Templatable extend Forwardable - def_delegators :@response_builder, :encrypt, :sign, :request, :issuer, :reference_id, :now, :configuration, :user, :version + def_delegators :@response_builder, :encrypt, :sign, :request, :issuer, :reference_id, :now, :configuration, :user, :version, :destination, :encryption_certificate def initialize(response_builder) @response_builder = response_builder end @@ -36,10 +36,10 @@ def subject_confirmation_data_options { InResponseTo: request.id, NotOnOrAfter: 3.hours.since(now).utc.iso8601, - Recipient: request.assertion_consumer_service_url, + Recipient: destination, } end def conditions_options {