# This is an automatically generated code sample.
# To make this code sample work in your Oracle Cloud tenancy,
# please replace the values for any parameters whose current values do not fit
# your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and
# boolean, number, and enum parameters with values not fitting your use case).
import oci
# Create a default config using DEFAULT profile in default location
# Refer to
# https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File
# for more info
config = oci.config.from_file()
# Initialize service client with default config file
identity_domains_client = oci.identity_domains.IdentityDomainsClient(
config, "https://endpoint_of_this_service.com")
# Send the request to service, some parameters are not required, see API
# doc for more info
put_identity_provider_response = identity_domains_client.put_identity_provider(
identity_provider_id="ocid1.test.oc1..<unique_ID>EXAMPLE-identityProviderId-Value",
authorization="EXAMPLE-authorization-Value",
resource_type_schema_version="EXAMPLE-resourceTypeSchemaVersion-Value",
attributes="EXAMPLE-attributes-Value",
attribute_sets=["request"],
identity_provider=oci.identity_domains.models.IdentityProvider(
schemas=["EXAMPLE--Value"],
partner_name="EXAMPLE-partnerName-Value",
enabled=True,
id="ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
ocid="EXAMPLE-ocid-Value",
meta=oci.identity_domains.models.Meta(
resource_type="EXAMPLE-resourceType-Value",
created="EXAMPLE-created-Value",
last_modified="EXAMPLE-lastModified-Value",
location="EXAMPLE-location-Value",
version="EXAMPLE-version-Value"),
idcs_created_by=oci.identity_domains.models.IdcsCreatedBy(
value="EXAMPLE-value-Value",
ref=None,
type="App",
display="EXAMPLE-display-Value",
ocid="EXAMPLE-ocid-Value"),
idcs_last_modified_by=oci.identity_domains.models.IdcsLastModifiedBy(
value="EXAMPLE-value-Value",
ref=None,
type="User",
display="EXAMPLE-display-Value",
ocid="EXAMPLE-ocid-Value"),
idcs_prevented_operations=["update"],
tags=[
oci.identity_domains.models.Tags(
key="EXAMPLE-key-Value",
value="EXAMPLE-value-Value")],
delete_in_progress=False,
idcs_last_upgraded_in_release="EXAMPLE-idcsLastUpgradedInRelease-Value",
domain_ocid="EXAMPLE-domainOcid-Value",
compartment_ocid="EXAMPLE-compartmentOcid-Value",
tenancy_ocid="EXAMPLE-tenancyOcid-Value",
external_id="ocid1.test.oc1..<unique_ID>EXAMPLE-externalId-Value",
description="EXAMPLE-description-Value",
metadata="EXAMPLE-metadata-Value",
partner_provider_id="ocid1.test.oc1..<unique_ID>EXAMPLE-partnerProviderId-Value",
tenant_provider_id="ocid1.test.oc1..<unique_ID>EXAMPLE-tenantProviderId-Value",
succinct_id="ocid1.test.oc1..<unique_ID>EXAMPLE-succinctId-Value",
idp_sso_url="EXAMPLE-idpSsoUrl-Value",
logout_request_url="EXAMPLE-logoutRequestUrl-Value",
logout_response_url="EXAMPLE-logoutResponseUrl-Value",
signing_certificate="EXAMPLE-signingCertificate-Value",
encryption_certificate="EXAMPLE-encryptionCertificate-Value",
name_id_format="EXAMPLE-nameIdFormat-Value",
include_signing_cert_in_signature=True,
authn_request_binding="Post",
logout_binding="Redirect",
logout_enabled=True,
signature_hash_algorithm="SHA-1",
icon_url="EXAMPLE-iconUrl-Value",
shown_on_login_page=True,
jit_user_prov_enabled=True,
jit_user_prov_group_assertion_attribute_enabled=False,
jit_user_prov_group_static_list_enabled=True,
jit_user_prov_create_user_enabled=True,
jit_user_prov_attribute_update_enabled=True,
jit_user_prov_group_assignment_method="Overwrite",
jit_user_prov_group_mapping_mode="explicit",
jit_user_prov_group_saml_attribute_name="EXAMPLE-jitUserProvGroupSAMLAttributeName-Value",
service_instance_identifier="EXAMPLE-serviceInstanceIdentifier-Value",
user_mapping_method="NameIDToUserAttribute",
user_mapping_store_attribute="EXAMPLE-userMappingStoreAttribute-Value",
assertion_attribute="EXAMPLE-assertionAttribute-Value",
type="LOCAL",
require_force_authn=False,
requires_encrypted_assertion=True,
saml_ho_k_required=True,
requested_authentication_context=["EXAMPLE--Value"],
jit_user_prov_ignore_error_on_absent_groups=True,
last_notification_sent_time="EXAMPLE-lastNotificationSentTime-Value",
jit_user_prov_group_mappings=[
oci.identity_domains.models.IdentityProviderJitUserProvGroupMappings(
value="EXAMPLE-value-Value",
ref=None,
idp_group="EXAMPLE-idpGroup-Value")],
jit_user_prov_attributes=oci.identity_domains.models.IdentityProviderJitUserProvAttributes(
value="EXAMPLE-value-Value",
ref=None),
jit_user_prov_assigned_groups=[
oci.identity_domains.models.IdentityProviderJitUserProvAssignedGroups(
value="EXAMPLE-value-Value",
ref=None,
display="EXAMPLE-display-Value")],
correlation_policy=oci.identity_domains.models.IdentityProviderCorrelationPolicy(
type="Policy",
value="EXAMPLE-value-Value",
ref=None,
display="EXAMPLE-display-Value"),
urn_ietf_params_scim_schemas_oracle_idcs_extension_social_identity_provider=oci.identity_domains.models.ExtensionSocialIdentityProvider(
account_linking_enabled=False,
registration_enabled=False,
consumer_key="EXAMPLE-consumerKey-Value",
consumer_secret="EXAMPLE-consumerSecret-Value",
service_provider_name="EXAMPLE-serviceProviderName-Value",
auto_redirect_enabled=False,
social_jit_provisioning_enabled=True,
jit_prov_group_static_list_enabled=True,
jit_prov_assigned_groups=[
oci.identity_domains.models.IdentityProviderJitProvAssignedGroups(
value="EXAMPLE-value-Value",
ref=None,
display="EXAMPLE-display-Value")],
status="created",
authz_url="EXAMPLE-authzUrl-Value",
access_token_url="EXAMPLE-accessTokenUrl-Value",
relay_idp_param_mappings=[
oci.identity_domains.models.IdentityProviderRelayIdpParamMappings(
relay_param_key="EXAMPLE-relayParamKey-Value",
relay_param_value="EXAMPLE-relayParamValue-Value")],
profile_url="EXAMPLE-profileUrl-Value",
scope=["EXAMPLE--Value"],
admin_scope=["EXAMPLE--Value"],
clock_skew_in_seconds=181,
redirect_url="EXAMPLE-redirectUrl-Value",
discovery_url="EXAMPLE-discoveryUrl-Value",
client_credential_in_payload=False,
id_attribute="EXAMPLE-idAttribute-Value"),
urn_ietf_params_scim_schemas_oracle_idcs_extension_x509_identity_provider=oci.identity_domains.models.ExtensionX509IdentityProvider(
cert_match_attribute="EXAMPLE-certMatchAttribute-Value",
user_match_attribute="EXAMPLE-userMatchAttribute-Value",
signing_certificate_chain=["EXAMPLE--Value"],
other_cert_match_attribute="EXAMPLE-otherCertMatchAttribute-Value",
ocsp_enabled=False,
ocsp_server_name="EXAMPLE-ocspServerName-Value",
ocsp_responder_url="EXAMPLE-ocspResponderURL-Value",
ocsp_allow_unknown_response_status=False,
ocsp_revalidate_time=772,
ocsp_enable_signed_response=True,
ocsp_trust_cert_chain=["EXAMPLE--Value"],
crl_enabled=False,
crl_check_on_ocsp_failure_enabled=False,
crl_location="EXAMPLE-crlLocation-Value",
crl_reload_duration=334,
eku_validation_enabled=False,
eku_values=["SERVER_AUTH"])),
if_match="EXAMPLE-ifMatch-Value",
opc_retry_token="EXAMPLE-opcRetryToken-Value")
# Get the data from response
print(put_identity_provider_response.data)