okta / terraform-provider-okta

A Terraform provider to manage Okta resources, enabling infrastructure-as-code provisioning and management of users, groups, applications, and other Okta objects.
https://registry.terraform.io/providers/okta/okta
Mozilla Public License 2.0
253 stars 204 forks source link

Add honorPersistentNameId to okta_idp_saml Terraform Resource #2064

Open caeblau opened 4 weeks ago

caeblau commented 4 weeks ago

Community Note

Description

According to Okta docs, the identity provider API provides an option to set the honorPersistentNameId field, which is not present in the okta_idp_saml docs. Could you support that functionality?

New or Affected Resource(s)

Potential Terraform Configuration

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.
resource "okta_idp_saml" "some_idp" {
  name                       = "name"
  sso_url                    = "https://thisisaurl/sso"
  sso_destination            = "https://thisisadestination/sso"
  username_template          = "idpuser.subjectNameId"
  kid                        = "kid"
  issuer                     = "https://sso-issuer/metadata"
  honorPersistentNameId      = true
  request_signature_scope    = "REQUEST"
  response_signature_scope   = "ANY"
  max_clock_skew             = 120000
  profile_master             = false
  provisioning_action        = "DISABLED"
  subject_match_attribute    = "email"
  subject_match_type         = "CUSTOM_ATTRIBUTE"
}

References

duytiennguyen-okta commented 3 weeks ago

OKTA internal reference https://oktainc.atlassian.net/browse/OKTA-795171