Class: FakeIdp::Configuration
- Inherits:
-
Object
- Object
- FakeIdp::Configuration
- Defined in:
- lib/fake_idp/configuration.rb
Instance Attribute Summary collapse
-
#additional_attributes ⇒ Object
Returns the value of attribute additional_attributes.
-
#algorithm ⇒ Object
Returns the value of attribute algorithm.
-
#callback_url ⇒ Object
Returns the value of attribute callback_url.
-
#certificate ⇒ Object
Returns the value of attribute certificate.
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#idp_certificate ⇒ Object
Returns the value of attribute idp_certificate.
-
#idp_secret_key ⇒ Object
Returns the value of attribute idp_secret_key.
-
#idp_sso_target_url ⇒ Object
Returns the value of attribute idp_sso_target_url.
-
#issuer ⇒ Object
Returns the value of attribute issuer.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#name_id ⇒ Object
Returns the value of attribute name_id.
-
#sso_uid ⇒ Object
Returns the value of attribute sso_uid.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/fake_idp/configuration.rb', line 21 def initialize @callback_url = ENV['CALLBACK_URL'] @sso_uid = ENV['SSO_UID'] @username = ENV['USERNAME'] @first_name = ENV['FIRST_NAME'] @last_name = ENV['LAST_NAME'] @email = ENV['EMAIL'] @name_id = ENV['NAME_ID'] @certificate = default_certificate @idp_certificate = default_idp_certificate @idp_secret_key = default_idp_secret_key @idp_sso_target_url = idp_sso_target_url @issuer = issuer @algorithm = default_algorithm @additional_attributes = {} @encryption_enabled = default_encryption end |
Instance Attribute Details
#additional_attributes ⇒ Object
Returns the value of attribute additional_attributes.
3 4 5 |
# File 'lib/fake_idp/configuration.rb', line 3 def additional_attributes @additional_attributes end |
#algorithm ⇒ Object
Returns the value of attribute algorithm.
3 4 5 |
# File 'lib/fake_idp/configuration.rb', line 3 def algorithm @algorithm end |
#callback_url ⇒ Object
Returns the value of attribute callback_url.
3 4 5 |
# File 'lib/fake_idp/configuration.rb', line 3 def callback_url @callback_url end |
#certificate ⇒ Object
Returns the value of attribute certificate.
3 4 5 |
# File 'lib/fake_idp/configuration.rb', line 3 def certificate @certificate end |
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/fake_idp/configuration.rb', line 3 def email @email end |
#first_name ⇒ Object
Returns the value of attribute first_name.
3 4 5 |
# File 'lib/fake_idp/configuration.rb', line 3 def first_name @first_name end |
#idp_certificate ⇒ Object
Returns the value of attribute idp_certificate.
3 4 5 |
# File 'lib/fake_idp/configuration.rb', line 3 def idp_certificate @idp_certificate end |
#idp_secret_key ⇒ Object
Returns the value of attribute idp_secret_key.
3 4 5 |
# File 'lib/fake_idp/configuration.rb', line 3 def idp_secret_key @idp_secret_key end |
#idp_sso_target_url ⇒ Object
Returns the value of attribute idp_sso_target_url.
3 4 5 |
# File 'lib/fake_idp/configuration.rb', line 3 def idp_sso_target_url @idp_sso_target_url end |
#issuer ⇒ Object
Returns the value of attribute issuer.
3 4 5 |
# File 'lib/fake_idp/configuration.rb', line 3 def issuer @issuer end |
#last_name ⇒ Object
Returns the value of attribute last_name.
3 4 5 |
# File 'lib/fake_idp/configuration.rb', line 3 def last_name @last_name end |
#name_id ⇒ Object
Returns the value of attribute name_id.
3 4 5 |
# File 'lib/fake_idp/configuration.rb', line 3 def name_id @name_id end |
#sso_uid ⇒ Object
Returns the value of attribute sso_uid.
3 4 5 |
# File 'lib/fake_idp/configuration.rb', line 3 def sso_uid @sso_uid end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/fake_idp/configuration.rb', line 3 def username @username end |