oci_identity_identity_provider
This resource provides the Identity Provider resource in Oracle Cloud Infrastructure Identity service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/identity/latest/IdentityProvider
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/identity
Deprecated. For more information, see Deprecated IAM Service APIs.
Creates a new identity provider in your tenancy. For more information, see Identity Providers and Federation.
You must specify your tenancy’s OCID as the compartment ID in the request object. Remember that the tenancy is simply the root compartment. For information about OCIDs, see Resource Identifiers.
You must also specify a name for the IdentityProvider, which must be unique
across all IdentityProvider objects in your tenancy and cannot be changed.
You must also specify a description for the IdentityProvider (although
it can be an empty string). It does not have to be unique, and you can change
it anytime with
UpdateIdentityProvider.
Example Usage
resource "oci_identity_identity_provider" "test_identity_provider" {
#Required
compartment_id = var.tenancy_ocid
description = var.identity_provider_description
metadata = var.identity_provider_metadata
metadata_url = var.identity_provider_metadata_url
name = var.identity_provider_name
product_type = var.identity_provider_product_type
protocol = var.identity_provider_protocol
#Optional
defined_tags = {"Operations.CostCenter"= "42"}
freeform_attributes = var.identity_provider_freeform_attributes
freeform_tags = {"Department"= "Finance"}
}
Argument Reference
The following arguments are supported:
compartment_id- (Required) The OCID of your tenancy.defined_tags- (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}description- (Required) (Updatable) The description you assign to theIdentityProviderduring creation. Does not have to be unique, and it’s changeable.freeform_attributes- (Optional) (Updatable) Extra name value pairs associated with this identity provider. Example:{"clientId": "app_sf3kdjf3"}freeform_tags- (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}metadata- (Required) (Updatable) The XML that contains the information required for federating.metadata_url- (Required) (Updatable) The URL for retrieving the identity provider’s metadata, which contains information required for federating.name- (Required) The name you assign to theIdentityProviderduring creation. The name must be unique across allIdentityProviderobjects in the tenancy and cannot be changed.product_type- (Required) The identity provider service or product. Supported identity providers are Oracle Identity Cloud Service (IDCS) and Microsoft Active Directory Federation Services (ADFS). Example:IDCSprotocol- (Required) (Updatable) The protocol used for federation. Example:SAML2
** 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:
compartment_id- The OCID of the tenancy containing theIdentityProvider.defined_tags- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}description- The description you assign to theIdentityProviderduring creation. Does not have to be unique, and it’s changeable.freeform_attributes- Extra name value pairs associated with this identity provider. Example:{"clientId": "app_sf3kdjf3"}freeform_tags- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}id- The OCID of theIdentityProvider.inactive_state- The detailed status of INACTIVE lifecycleState.metadata- The XML that contains the information required for federating Identity with SAML2 Identity Provider.metadata_url- The URL for retrieving the identity provider’s metadata, which contains information required for federating.name- The name you assign to theIdentityProviderduring creation. The name must be unique across allIdentityProviderobjects in the tenancy and cannot be changed. This is the name federated users see when choosing which identity provider to use when signing in to the Oracle Cloud Infrastructure Console.product_type- The identity provider service or product. Supported identity providers are Oracle Identity Cloud Service (IDCS) and Microsoft Active Directory Federation Services (ADFS).Allowed values are:
ADFSIDCS
Example:
IDCSprotocol- The protocol used for federation. Allowed value:SAML2. Example:SAML2redirect_url- The URL to redirect federated users to for authentication with the identity provider.signing_certificate- The identity provider’s signing certificate used by the IAM Service to validate the SAML2 token.state- The current state.time_created- Date and time theIdentityProviderwas created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
Timeouts
The timeouts block allows you to specify timeouts for certain operations:
* create - (Defaults to 20 minutes), when creating the Identity Provider
* update - (Defaults to 20 minutes), when updating the Identity Provider
* delete - (Defaults to 20 minutes), when destroying the Identity Provider
Import
IdentityProviders can be imported using the id, e.g.
$ terraform import oci_identity_identity_provider.test_identity_provider "id"