Use this resource to create a Nexus Security SAML configuration.
resource "nexus_security_saml" "example" {
idp_metadata = "<EntityDescriptor ...>...</EntityDescriptor>"
entity_id = "http://nexus.example/service/rest/v1/security/saml/metadata"
validate_response_signature = true
validate_assertion_signature = true
username_attribute = "username"
first_name_attribute = "firstName"
last_name_attribute = "lastName"
email_attribute = "email"
groups_attribute = "groups"
}
idp_metadata
(String) SAML Identity Provider Metadata XMLusername_attribute
(String) IdP field mappings for usernameemail_attribute
(String) IdP field mappings for user's email addressentity_id
(String) Entity ID URIfirst_name_attribute
(String) IdP field mappings for user's given namegroups_attribute
(String) IdP field mappings for user's groupslast_name_attribute
(String) IdP field mappings for user's family namevalidate_assertion_signature
(Boolean) By default, if a signing key is found in the IdP metadata, then NXRM will attempt to validate signatures on the assertions.validate_response_signature
(Boolean) By default, if a signing key is found in the IdP metadata, then NXRM will attempt to validate signatures on the response.Import is supported using the following syntax:
# import of saml configuration
terraform import nexus_security_saml.example samle