Class: Maestrano::Saml::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/maestrano/saml/settings.rb

Constant Summary collapse

NAMEID_EMAIL_ADDRESS =
'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress'
NAMEID_X509_SUBJECT_NAME =
'urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName'
NAMEID_WINDOWS_DOMAIN_QUALIFIED_NAME =
'urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName'
NAMEID_KERBEROS =
'urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos'
NAMEID_ENTITY =
'urn:oasis:names:tc:SAML:2.0:nameid-format:entity'
NAMEID_TRANSIENT =
'urn:oasis:names:tc:SAML:2.0:nameid-format:transient'
NAMEID_PERSISTENT =
'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent'
PROTOCOL_BINDING_POST =
'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(overrides = {}) ⇒ Settings

Returns a new instance of Settings.



13
14
15
16
17
18
19
# File 'lib/maestrano/saml/settings.rb', line 13

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

Instance Attribute Details

#assertion_consumer_logout_service_urlObject

Returns the value of attribute assertion_consumer_logout_service_url.



26
27
28
# File 'lib/maestrano/saml/settings.rb', line 26

def assertion_consumer_logout_service_url
  @assertion_consumer_logout_service_url
end

#assertion_consumer_service_urlObject

Returns the value of attribute assertion_consumer_service_url.



20
21
22
# File 'lib/maestrano/saml/settings.rb', line 20

def assertion_consumer_service_url
  @assertion_consumer_service_url
end

#authn_contextObject

Returns the value of attribute authn_context.



22
23
24
# File 'lib/maestrano/saml/settings.rb', line 22

def authn_context
  @authn_context
end

#compress_requestObject

Returns the value of attribute compress_request.



27
28
29
# File 'lib/maestrano/saml/settings.rb', line 27

def compress_request
  @compress_request
end

#double_quote_xml_attribute_valuesObject

Returns the value of attribute double_quote_xml_attribute_values.



28
29
30
# File 'lib/maestrano/saml/settings.rb', line 28

def double_quote_xml_attribute_values
  @double_quote_xml_attribute_values
end

#idp_certObject

Returns the value of attribute idp_cert.



21
22
23
# File 'lib/maestrano/saml/settings.rb', line 21

def idp_cert
  @idp_cert
end

#idp_cert_fingerprintObject

Returns the value of attribute idp_cert_fingerprint.



21
22
23
# File 'lib/maestrano/saml/settings.rb', line 21

def idp_cert_fingerprint
  @idp_cert_fingerprint
end

#idp_slo_target_urlObject

Returns the value of attribute idp_slo_target_url.



23
24
25
# File 'lib/maestrano/saml/settings.rb', line 23

def idp_slo_target_url
  @idp_slo_target_url
end

#idp_sso_target_urlObject

Returns the value of attribute idp_sso_target_url.



21
22
23
# File 'lib/maestrano/saml/settings.rb', line 21

def idp_sso_target_url
  @idp_sso_target_url
end

#issuerObject

Returns the value of attribute issuer.



20
21
22
# File 'lib/maestrano/saml/settings.rb', line 20

def issuer
  @issuer
end

#name_identifier_formatObject

Returns the value of attribute name_identifier_format.



21
22
23
# File 'lib/maestrano/saml/settings.rb', line 21

def name_identifier_format
  @name_identifier_format
end

#name_identifier_valueObject

Returns the value of attribute name_identifier_value.



24
25
26
# File 'lib/maestrano/saml/settings.rb', line 24

def name_identifier_value
  @name_identifier_value
end

#passiveObject

Returns the value of attribute passive.



29
30
31
# File 'lib/maestrano/saml/settings.rb', line 29

def passive
  @passive
end

#protocol_bindingObject

Returns the value of attribute protocol_binding.



30
31
32
# File 'lib/maestrano/saml/settings.rb', line 30

def protocol_binding
  @protocol_binding
end

#sessionindexObject

Returns the value of attribute sessionindex.



25
26
27
# File 'lib/maestrano/saml/settings.rb', line 25

def sessionindex
  @sessionindex
end

#sp_name_qualifierObject

Returns the value of attribute sp_name_qualifier.



20
21
22
# File 'lib/maestrano/saml/settings.rb', line 20

def sp_name_qualifier
  @sp_name_qualifier
end