oci_identity_domains_oauth2client_credential

This resource provides the O Auth2 Client Credential resource in Oracle Cloud Infrastructure Identity Domains service.

Add a user's OAuth2 client credentials.

Example Usage

resource "oci_identity_domains_oauth2client_credential" "test_oauth2client_credential" {
    #Required
    idcs_endpoint = data.oci_identity_domain.test_domain.url
    name = var.oauth2client_credential_name
    schemas = ["urn:ietf:params:scim:schemas:oracle:idcs:oauth2ClientCredential"]
    scopes {
        #Required
        audience = var.oauth2client_credential_scopes_audience
        scope = var.oauth2client_credential_scopes_scope
    }

    #Optional
    attribute_sets = []
    attributes = ""
    authorization = var.oauth2client_credential_authorization
    description = var.oauth2client_credential_description
    expires_on = var.oauth2client_credential_expires_on
    id = var.oauth2client_credential_id
    is_reset_secret = var.oauth2client_credential_is_reset_secret
    ocid = var.oauth2client_credential_ocid
    resource_type_schema_version = var.oauth2client_credential_resource_type_schema_version
    status = var.oauth2client_credential_status
    tags {
        #Required
        key = var.oauth2client_credential_tags_key
        value = var.oauth2client_credential_tags_value
    }
    urnietfparamsscimschemasoracleidcsextensionself_change_user {

        #Optional
        allow_self_change = var.oauth2client_credential_urnietfparamsscimschemasoracleidcsextensionself_change_user_allow_self_change
    }
    user {

        #Optional
        ocid = oci_identity_domains_user.test_user.ocid
        value = oci_identity_domains_user.test_user.id
    }
}

Argument Reference

The following arguments are supported:

* IMPORTANT * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the O Auth2 Client Credential * update - (Defaults to 20 minutes), when updating the O Auth2 Client Credential * delete - (Defaults to 20 minutes), when destroying the O Auth2 Client Credential

Import

OAuth2ClientCredentials can be imported using the id, e.g.

$ terraform import oci_identity_domains_oauth2client_credential.test_oauth2client_credential "idcsEndpoint/{idcsEndpoint}/oAuth2ClientCredentials/{oAuth2ClientCredentialId}"