Class: FederazioneTrentina::Saml::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/federazione_trentina/ruby-saml/settings.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config = {}) ⇒ Settings

Returns a new instance of Settings.



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 14

def initialize(config = {})
  config.each do |k,v|
    acc = "#{k.to_s}=".to_sym
    self.send(acc, v) if self.respond_to? acc
  end

  # Set some sane default values on a few options
  self.assertion_consumer_service_binding = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
  self.single_logout_service_binding = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
  # Default cache TTL for metadata is 1 day
  self. = 86400
end

Instance Attribute Details

#assertion_consumer_service_bindingObject

Returns the value of attribute assertion_consumer_service_binding.



8
9
10
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 8

def assertion_consumer_service_binding
  @assertion_consumer_service_binding
end

#assertion_consumer_service_urlObject

Returns the value of attribute assertion_consumer_service_url.



5
6
7
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 5

def assertion_consumer_service_url
  @assertion_consumer_service_url
end

#authn_contextObject

Returns the value of attribute authn_context.



7
8
9
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 7

def authn_context
  @authn_context
end

#destination_service_urlObject

Returns the value of attribute destination_service_url.



11
12
13
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 11

def destination_service_url
  @destination_service_url
end

#idp_certObject

Returns the value of attribute idp_cert.



6
7
8
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 6

def idp_cert
  @idp_cert
end

#idp_cert_fingerprintObject

Returns the value of attribute idp_cert_fingerprint.



6
7
8
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 6

def idp_cert_fingerprint
  @idp_cert_fingerprint
end

#idp_metadataObject

Returns the value of attribute idp_metadata.



6
7
8
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 6

def 
  @idp_metadata
end

#idp_metadata_ttlObject

Returns the value of attribute idp_metadata_ttl.



6
7
8
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 6

def 
  @idp_metadata_ttl
end

#idp_name_qualifierObject

Returns the value of attribute idp_name_qualifier.



6
7
8
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 6

def idp_name_qualifier
  @idp_name_qualifier
end

#idp_slo_target_urlObject

Returns the value of attribute idp_slo_target_url.



8
9
10
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 8

def idp_slo_target_url
  @idp_slo_target_url
end

#idp_sso_target_urlObject

Returns the value of attribute idp_sso_target_url.



6
7
8
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 6

def idp_sso_target_url
  @idp_sso_target_url
end

#issuerObject

Returns the value of attribute issuer.



5
6
7
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 5

def issuer
  @issuer
end

#name_identifier_formatObject

Returns the value of attribute name_identifier_format.



6
7
8
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 6

def name_identifier_format
  @name_identifier_format
end

#name_identifier_valueObject

Returns the value of attribute name_identifier_value.



9
10
11
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 9

def name_identifier_value
  @name_identifier_value
end

#requester_identificatorObject

Returns the value of attribute requester_identificator.



7
8
9
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 7

def requester_identificator
  @requester_identificator
end

#sessionindexObject

Returns the value of attribute sessionindex.



10
11
12
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 10

def sessionindex
  @sessionindex
end

#single_logout_destinationObject

Returns the value of attribute single_logout_destination.



11
12
13
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 11

def single_logout_destination
  @single_logout_destination
end

#single_logout_service_bindingObject

Returns the value of attribute single_logout_service_binding.



11
12
13
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 11

def single_logout_service_binding
  @single_logout_service_binding
end

#single_logout_service_urlObject

Returns the value of attribute single_logout_service_url.



11
12
13
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 11

def single_logout_service_url
  @single_logout_service_url
end

#skip_validationObject

Returns the value of attribute skip_validation.



12
13
14
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 12

def skip_validation
  @skip_validation
end

#sp_certObject

Returns the value of attribute sp_cert.



5
6
7
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 5

def sp_cert
  @sp_cert
end

#sp_name_qualifierObject

Returns the value of attribute sp_name_qualifier.



5
6
7
# File 'lib/federazione_trentina/ruby-saml/settings.rb', line 5

def sp_name_qualifier
  @sp_name_qualifier
end