Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oci_identity_domains_identity_provider returns ocid instead of id #2241

Open
DENISKI opened this issue Nov 13, 2024 · 0 comments
Open

oci_identity_domains_identity_provider returns ocid instead of id #2241

DENISKI opened this issue Nov 13, 2024 · 0 comments
Labels

Comments

@DENISKI
Copy link

DENISKI commented Nov 13, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version and Provider Version

terraform -v
Terraform v1.8.4
on linux_amd64

  • provider registry.terraform.io/oracle/oci v6.15.0

Affected Resource(s)

oci_identity_domains_identity_provider

Terraform Configuration Files

{
  "oci_identity_domains_identity_provider": {
    "oci-identity-domains-identity-provider-default-saml-idp-in-production-tenancy": {
      "provider": "oci.production-sa-saopaulo-1-home",
      "description": "SAML IDP with production tenancy",
      "enabled": true,
      "partner_name": "saml-production",
      "partner_provider_id": "${data.oci_identity_domains.oci-identity-domains-default-in-production-tenancy.domains[0].url}/fed",
      "idcs_endpoint": "${data.oci_identity_domains.oci-identity-domains-default-in-production-tenancy.domains[0].url}",
      "idp_sso_url": "${data.oci_identity_domains.oci-identity-domains-default-in-production-tenancy.domains[0].url}/fed/v1/sp/sso",
      "jit_user_prov_attribute_update_enabled": false,
      "jit_user_prov_create_user_enabled": false,
      "jit_user_prov_enabled": false,
      "jit_user_prov_group_assignment_method": "Overwrite",
      "metadata": "${data.http.http-default-metadata-in-production-tenancy.response_body}",
      "name_id_format": "saml-none",                 
      "schemas": [
        "urn:ietf:params:scim:schemas:oracle:idcs:IdentityProvider"
      ],
      "signature_hash_algorithm": "SHA-256",         
      "type": "SAML",
      "user_mapping_method": "NameIDToUserAttribute",
      "user_mapping_store_attribute": "userName",
      "lifecycle": [
        {
          "ignore_changes": [
            "metadata"
          ],
          "precondition": [
            {
              "condition": "${contains([200], data.http.http-default-metadata-in-production-tenancy.status_code)}",
              "error_message": "Status code invalid"
            }
          ]
        }
      ],
      "depends_on": [
        "data.oci_identity_domains.oci-identity-domains-default-in-production-tenancy"
      ]
    }
  }
}

Expected Behavior

Attribute id should returns idp id but not ocid

Actual Behavior

Attribute id returns ocid

Steps to Reproduce

get output from oci_identity_domains_identity_provider.oci-identity-domains-identity-provider-default-saml-idp-in-production-tenancy.id

terraform state show returns
id = "ocid1.domainidentityprovider.oc1.us-chicago-1.some_sensitive_data"

@DENISKI DENISKI added the bug label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant