Class: SamlIdp::Configurator

Inherits:
Object
  • Object
show all
Defined in:
lib/saml_idp/configurator.rb

Defined Under Namespace

Classes: TechnicalContact

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfigurator

Returns a new instance of Configurator.



20
21
22
23
24
25
26
27
28
29
30
# File 'lib/saml_idp/configurator.rb', line 20

def initialize
  self.x509_certificate = Default::X509_CERTIFICATE
  self.secret_key = Default::SECRET_KEY
  self.algorithm = :sha1
  self.reference_id_generator = ->() { UUID.generate }
  self.service_provider = OpenStruct.new
  self.service_provider.finder = ->(_) { Default::SERVICE_PROVIDER }
  self.service_provider. = ->(id, settings) {  }
  self.service_provider. = ->(id, service_provider) {  }
  self.attributes = {}
end

Instance Attribute Details

#algorithmObject

Returns the value of attribute algorithm.



8
9
10
# File 'lib/saml_idp/configurator.rb', line 8

def algorithm
  @algorithm
end

#attribute_service_locationObject

Returns the value of attribute attribute_service_location.



14
15
16
# File 'lib/saml_idp/configurator.rb', line 14

def attribute_service_location
  @attribute_service_location
end

#attributesObject

Returns the value of attribute attributes.



17
18
19
# File 'lib/saml_idp/configurator.rb', line 17

def attributes
  @attributes
end

#base_saml_locationObject

Returns the value of attribute base_saml_location.



11
12
13
# File 'lib/saml_idp/configurator.rb', line 11

def base_saml_location
  @base_saml_location
end

#entity_idObject

Returns the value of attribute entity_id.



12
13
14
# File 'lib/saml_idp/configurator.rb', line 12

def entity_id
  @entity_id
end

#organization_nameObject

Returns the value of attribute organization_name.



9
10
11
# File 'lib/saml_idp/configurator.rb', line 9

def organization_name
  @organization_name
end

#organization_urlObject

Returns the value of attribute organization_url.



10
11
12
# File 'lib/saml_idp/configurator.rb', line 10

def organization_url
  @organization_url
end

#passwordObject

Returns the value of attribute password.



7
8
9
# File 'lib/saml_idp/configurator.rb', line 7

def password
  @password
end

#reference_id_generatorObject

Returns the value of attribute reference_id_generator.



13
14
15
# File 'lib/saml_idp/configurator.rb', line 13

def reference_id_generator
  @reference_id_generator
end

#secret_keyObject

Returns the value of attribute secret_key.



6
7
8
# File 'lib/saml_idp/configurator.rb', line 6

def secret_key
  @secret_key
end

#service_providerObject

Returns the value of attribute service_provider.



18
19
20
# File 'lib/saml_idp/configurator.rb', line 18

def service_provider
  @service_provider
end

#single_logout_service_post_locationObject

Returns the value of attribute single_logout_service_post_location.



16
17
18
# File 'lib/saml_idp/configurator.rb', line 16

def single_logout_service_post_location
  @single_logout_service_post_location
end

#single_service_post_locationObject

Returns the value of attribute single_service_post_location.



15
16
17
# File 'lib/saml_idp/configurator.rb', line 15

def single_service_post_location
  @single_service_post_location
end

#x509_certificateObject

Returns the value of attribute x509_certificate.



5
6
7
# File 'lib/saml_idp/configurator.rb', line 5

def x509_certificate
  @x509_certificate
end

Instance Method Details

#name_idObject

formats getter



34
35
36
# File 'lib/saml_idp/configurator.rb', line 34

def name_id
  @name_id ||= OpenStruct.new
end

#technical_contactObject



38
39
40
# File 'lib/saml_idp/configurator.rb', line 38

def technical_contact
  @technical_contact ||= TechnicalContact.new
end