lib/saml/kit/builders/authentication_request.rb in saml-kit-1.0.15 vs lib/saml/kit/builders/authentication_request.rb in saml-kit-1.0.16
- old
+ new
@@ -5,11 +5,12 @@
module Builders
# {include:file:lib/saml/kit/builders/templates/authentication_request.builder}
# {include:file:spec/saml/kit/builders/authentication_request_spec.rb}
class AuthenticationRequest
include XmlTemplatable
- attr_accessor :id, :now, :issuer, :assertion_consumer_service_url, :name_id_format, :destination
+ attr_accessor :id, :now, :issuer, :assertion_consumer_service_url
+ attr_accessor :name_id_format, :destination
attr_accessor :version
attr_reader :configuration
def initialize(configuration: Saml::Kit.configuration)
@configuration = configuration
@@ -34,10 +35,11 @@
Version: version,
IssueInstant: now.utc.iso8601,
Destination: destination,
}
if assertion_consumer_service_url.present?
- options[:AssertionConsumerServiceURL] = assertion_consumer_service_url
+ options[:AssertionConsumerServiceURL] =
+ assertion_consumer_service_url
end
options
end
end
end