Sha256: ac321fb3c3eadac324a5b9cd3b3f11ffd78b1f30f476d257271f7b546eb5a4c3
Contents?: true
Size: 876 Bytes
Versions: 33
Compression:
Stored size: 876 Bytes
Contents
module Saml module Elements class Conditions include Saml::Base tag 'Conditions' namespace 'saml' attribute :not_before, Time, tag: 'NotBefore', on_save: lambda { |val| val.utc.xmlschema if val.present? } attribute :not_on_or_after, Time, tag: 'NotOnOrAfter', on_save: lambda { |val| val.utc.xmlschema if val.present? } has_one :audience_restriction, Saml::Elements::AudienceRestriction def initialize(*args) options = args.extract_options! @audience_restriction = Saml::Elements::AudienceRestriction.new(:audience => options.delete(:audience)) if options[:audience] self.not_before = Time.now - Saml::Config.max_issue_instant_offset.minutes self.not_on_or_after = Time.now + Saml::Config.max_issue_instant_offset.minutes super(*(args << options)) end end end end
Version data entries
33 entries across 33 versions & 1 rubygems