Class: Onelogin::Saml::Settings
- Inherits:
-
Object
- Object
- Onelogin::Saml::Settings
- Defined in:
- lib/onelogin/ruby-saml/settings.rb
Instance Attribute Summary collapse
-
#assertion_consumer_service_binding ⇒ Object
Returns the value of attribute assertion_consumer_service_binding.
-
#assertion_consumer_service_url ⇒ Object
Returns the value of attribute assertion_consumer_service_url.
-
#authn_context ⇒ Object
Returns the value of attribute authn_context.
-
#destination_service_url ⇒ Object
Returns the value of attribute destination_service_url.
-
#idp_cert ⇒ Object
Returns the value of attribute idp_cert.
-
#idp_cert_fingerprint ⇒ Object
Returns the value of attribute idp_cert_fingerprint.
-
#idp_metadata ⇒ Object
Returns the value of attribute idp_metadata.
-
#idp_metadata_ttl ⇒ Object
Returns the value of attribute idp_metadata_ttl.
-
#idp_name_qualifier ⇒ Object
Returns the value of attribute idp_name_qualifier.
-
#idp_slo_target_url ⇒ Object
Returns the value of attribute idp_slo_target_url.
-
#idp_sso_target_url ⇒ Object
Returns the value of attribute idp_sso_target_url.
-
#issuer ⇒ Object
Returns the value of attribute issuer.
-
#name_identifier_format ⇒ Object
Returns the value of attribute name_identifier_format.
-
#name_identifier_value ⇒ Object
Returns the value of attribute name_identifier_value.
-
#requester_identificator ⇒ Object
Returns the value of attribute requester_identificator.
-
#sessionindex ⇒ Object
Returns the value of attribute sessionindex.
-
#single_logout_destination ⇒ Object
Returns the value of attribute single_logout_destination.
-
#single_logout_service_binding ⇒ Object
Returns the value of attribute single_logout_service_binding.
-
#single_logout_service_url ⇒ Object
Returns the value of attribute single_logout_service_url.
-
#skip_validation ⇒ Object
Returns the value of attribute skip_validation.
-
#sp_cert ⇒ Object
Returns the value of attribute sp_cert.
-
#sp_name_qualifier ⇒ Object
Returns the value of attribute sp_name_qualifier.
Instance Method Summary collapse
-
#initialize(config = {}) ⇒ Settings
constructor
A new instance of Settings.
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/onelogin/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_binding ⇒ Object
Returns the value of attribute assertion_consumer_service_binding.
8 9 10 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 8 def assertion_consumer_service_binding @assertion_consumer_service_binding end |
#assertion_consumer_service_url ⇒ Object
Returns the value of attribute assertion_consumer_service_url.
5 6 7 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 5 def assertion_consumer_service_url @assertion_consumer_service_url end |
#authn_context ⇒ Object
Returns the value of attribute authn_context.
7 8 9 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 7 def authn_context @authn_context end |
#destination_service_url ⇒ Object
Returns the value of attribute destination_service_url.
11 12 13 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 11 def destination_service_url @destination_service_url end |
#idp_cert ⇒ Object
Returns the value of attribute idp_cert.
6 7 8 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 6 def idp_cert @idp_cert end |
#idp_cert_fingerprint ⇒ Object
Returns the value of attribute idp_cert_fingerprint.
6 7 8 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 6 def idp_cert_fingerprint @idp_cert_fingerprint end |
#idp_metadata ⇒ Object
Returns the value of attribute idp_metadata.
6 7 8 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 6 def @idp_metadata end |
#idp_metadata_ttl ⇒ Object
Returns the value of attribute idp_metadata_ttl.
6 7 8 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 6 def @idp_metadata_ttl end |
#idp_name_qualifier ⇒ Object
Returns the value of attribute idp_name_qualifier.
6 7 8 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 6 def idp_name_qualifier @idp_name_qualifier end |
#idp_slo_target_url ⇒ Object
Returns the value of attribute idp_slo_target_url.
8 9 10 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 8 def idp_slo_target_url @idp_slo_target_url end |
#idp_sso_target_url ⇒ Object
Returns the value of attribute idp_sso_target_url.
6 7 8 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 6 def idp_sso_target_url @idp_sso_target_url end |
#issuer ⇒ Object
Returns the value of attribute issuer.
5 6 7 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 5 def issuer @issuer end |
#name_identifier_format ⇒ Object
Returns the value of attribute name_identifier_format.
6 7 8 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 6 def name_identifier_format @name_identifier_format end |
#name_identifier_value ⇒ Object
Returns the value of attribute name_identifier_value.
9 10 11 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 9 def name_identifier_value @name_identifier_value end |
#requester_identificator ⇒ Object
Returns the value of attribute requester_identificator.
7 8 9 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 7 def requester_identificator @requester_identificator end |
#sessionindex ⇒ Object
Returns the value of attribute sessionindex.
10 11 12 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 10 def sessionindex @sessionindex end |
#single_logout_destination ⇒ Object
Returns the value of attribute single_logout_destination.
11 12 13 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 11 def single_logout_destination @single_logout_destination end |
#single_logout_service_binding ⇒ Object
Returns the value of attribute single_logout_service_binding.
11 12 13 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 11 def single_logout_service_binding @single_logout_service_binding end |
#single_logout_service_url ⇒ Object
Returns the value of attribute single_logout_service_url.
11 12 13 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 11 def single_logout_service_url @single_logout_service_url end |
#skip_validation ⇒ Object
Returns the value of attribute skip_validation.
12 13 14 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 12 def skip_validation @skip_validation end |
#sp_cert ⇒ Object
Returns the value of attribute sp_cert.
5 6 7 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 5 def sp_cert @sp_cert end |
#sp_name_qualifier ⇒ Object
Returns the value of attribute sp_name_qualifier.
5 6 7 |
# File 'lib/onelogin/ruby-saml/settings.rb', line 5 def sp_name_qualifier @sp_name_qualifier end |