Class: WorkOS::CreateConnectionSAMLOptions
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::CreateConnectionSAMLOptions
- Defined in:
- lib/workos/sso/create_connection_saml_options.rb
Constant Summary collapse
- HASH_ATTRS =
{ idp_metadata_url: :idp_metadata_url, acs_url: :acs_url, sp_entity_id: :sp_entity_id, idp_entity_id: :idp_entity_id, idp_sso_url: :idp_sso_url, idp_signing_certs: :idp_signing_certs, sp_signing_key_pair: :sp_signing_key_pair, sp_encryption_key_pairs: :sp_encryption_key_pairs }.freeze
Instance Attribute Summary collapse
-
#acs_url ⇒ Object
Returns the value of attribute acs_url.
-
#idp_entity_id ⇒ Object
Returns the value of attribute idp_entity_id.
-
#idp_metadata_url ⇒ Object
Returns the value of attribute idp_metadata_url.
-
#idp_signing_certs ⇒ Object
Returns the value of attribute idp_signing_certs.
-
#idp_sso_url ⇒ Object
Returns the value of attribute idp_sso_url.
-
#sp_encryption_key_pairs ⇒ Object
Returns the value of attribute sp_encryption_key_pairs.
-
#sp_entity_id ⇒ Object
Returns the value of attribute sp_entity_id.
-
#sp_signing_key_pair ⇒ Object
Returns the value of attribute sp_signing_key_pair.
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateConnectionSAMLOptions
constructor
A new instance of CreateConnectionSAMLOptions.
Constructor Details
#initialize(json) ⇒ CreateConnectionSAMLOptions
Returns a new instance of CreateConnectionSAMLOptions.
28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/workos/sso/create_connection_saml_options.rb', line 28 def initialize(json) hash = self.class.normalize(json) @idp_metadata_url = hash[:idp_metadata_url] @acs_url = hash[:acs_url] @sp_entity_id = hash[:sp_entity_id] @idp_entity_id = hash[:idp_entity_id] @idp_sso_url = hash[:idp_sso_url] @idp_signing_certs = hash[:idp_signing_certs] || [] @sp_signing_key_pair = hash[:sp_signing_key_pair] ? WorkOS::CreateConnectionKeyPair.new(hash[:sp_signing_key_pair]) : nil @sp_encryption_key_pairs = (hash[:sp_encryption_key_pairs] || []).map { |item| item ? WorkOS::CreateConnectionKeyPair.new(item) : nil } end |
Instance Attribute Details
#acs_url ⇒ Object
Returns the value of attribute acs_url.
18 19 20 |
# File 'lib/workos/sso/create_connection_saml_options.rb', line 18 def acs_url @acs_url end |
#idp_entity_id ⇒ Object
Returns the value of attribute idp_entity_id.
18 19 20 |
# File 'lib/workos/sso/create_connection_saml_options.rb', line 18 def idp_entity_id @idp_entity_id end |
#idp_metadata_url ⇒ Object
Returns the value of attribute idp_metadata_url.
18 19 20 |
# File 'lib/workos/sso/create_connection_saml_options.rb', line 18 def @idp_metadata_url end |
#idp_signing_certs ⇒ Object
Returns the value of attribute idp_signing_certs.
18 19 20 |
# File 'lib/workos/sso/create_connection_saml_options.rb', line 18 def idp_signing_certs @idp_signing_certs end |
#idp_sso_url ⇒ Object
Returns the value of attribute idp_sso_url.
18 19 20 |
# File 'lib/workos/sso/create_connection_saml_options.rb', line 18 def idp_sso_url @idp_sso_url end |
#sp_encryption_key_pairs ⇒ Object
Returns the value of attribute sp_encryption_key_pairs.
18 19 20 |
# File 'lib/workos/sso/create_connection_saml_options.rb', line 18 def sp_encryption_key_pairs @sp_encryption_key_pairs end |
#sp_entity_id ⇒ Object
Returns the value of attribute sp_entity_id.
18 19 20 |
# File 'lib/workos/sso/create_connection_saml_options.rb', line 18 def sp_entity_id @sp_entity_id end |
#sp_signing_key_pair ⇒ Object
Returns the value of attribute sp_signing_key_pair.
18 19 20 |
# File 'lib/workos/sso/create_connection_saml_options.rb', line 18 def sp_signing_key_pair @sp_signing_key_pair end |