lib/saml/kit/builders/assertion.rb in saml-kit-1.0.15 vs lib/saml/kit/builders/assertion.rb in saml-kit-1.0.16

- old
+ new

@@ -7,19 +7,21 @@ # {include:file:lib/saml/kit/builders/templates/assertion.builder} class Assertion include XmlTemplatable extend Forwardable - def_delegators :@response_builder, :request, :issuer, :reference_id, :now, :configuration, :user, :version, :destination + def_delegators :@response_builder, + :request, :issuer, :reference_id, :now, :configuration, :user, + :version, :destination def initialize(response_builder, embed_signature) @response_builder = response_builder self.embed_signature = embed_signature end def name_id_format - request.try(:name_id_format) || Saml::Kit::Namespaces::PERSISTENT + request.try(:name_id_format) end def name_id user.name_id_for(name_id_format) end @@ -60,10 +62,11 @@ def authn_statement_options { AuthnInstant: now.iso8601, SessionIndex: reference_id, - SessionNotOnOrAfter: configuration.session_timeout.since(now).utc.iso8601, + SessionNotOnOrAfter: + configuration.session_timeout.since(now).utc.iso8601, } end end end end