lib/saml/kit/builders/assertion.rb in saml-kit-0.2.11 vs lib/saml/kit/builders/assertion.rb in saml-kit-0.2.12

- old
+ new

@@ -43,18 +43,18 @@ end def conditions_options { NotBefore: now.utc.iso8601, - NotOnOrAfter: configuration.session_timeout.from_now.utc.iso8601, + NotOnOrAfter: configuration.session_timeout.since(now).utc.iso8601, } end def authn_statement_options { AuthnInstant: now.iso8601, SessionIndex: reference_id, - SessionNotOnOrAfter: 3.hours.since(now).utc.iso8601, + SessionNotOnOrAfter: configuration.session_timeout.since(now).utc.iso8601, } end end end end