Sha256: 24a622b387d75262ba4b1b99c1bf3d0478d916b6cc336a02c35cd53879ff04be

Contents?: true

Size: 947 Bytes

Versions: 7

Compression:

Stored size: 947 Bytes

Contents

module OneLogin
  module RubySaml
    class Settings
      def initialize(overrides = {})
        config = DEFAULTS.merge(overrides)
        config.each do |k,v|
          acc = "#{k.to_s}=".to_sym
          self.send(acc, v) if self.respond_to? acc
        end
      end
      attr_accessor :assertion_consumer_service_url, :issuer, :sp_name_qualifier
      attr_accessor :idp_sso_target_url, :idp_cert_fingerprint, :idp_cert, :name_identifier_format
      attr_accessor :authn_context
      attr_accessor :idp_slo_target_url
      attr_accessor :name_identifier_value
      attr_accessor :sessionindex
      attr_accessor :assertion_consumer_logout_service_url
      attr_accessor :compress_request
      attr_accessor :double_quote_xml_attribute_values
      attr_accessor :passive
      attr_accessor :protocol_binding

      private

      DEFAULTS = {:compress_request => true, :double_quote_xml_attribute_values => false}
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby-saml-0.8.7 lib/onelogin/ruby-saml/settings.rb
ruby-saml-0.8.6 lib/onelogin/ruby-saml/settings.rb
ruby-saml-0.8.5 lib/onelogin/ruby-saml/settings.rb
ruby-saml-0.8.4 lib/onelogin/ruby-saml/settings.rb
ruby-saml-0.8.3 lib/onelogin/ruby-saml/settings.rb
ruby-saml-0.8.2 lib/onelogin/ruby-saml/settings.rb
ruby-saml-0.8.1 lib/onelogin/ruby-saml/settings.rb