Hi @Jesus Garces
Here is a sample integration crendential you can look at. you can also follow this thread for more information .
PS: the expose_client_secret only works when you are creating a new auth client. For an existing auth client adding this attribute will not make any impact because the "read acuth client" will no longer return client secret. Client secret is only exposed during creation.
data "genesyscloud_auth_division" "New_Home" {
name = "New Home"
}
data "genesyscloud_auth_role" "Master_Admin" {
name = "Master Admin"
}
resource "genesyscloud_oauth_client" "hem_Client2" {
state = "active"
access_token_validity_seconds = 86400
authorized_grant_type = "CLIENT-CREDENTIALS"
name = "hem Client2"
roles {
division_id = "${data.genesyscloud_auth_division.New_Home.id}"
role_id = "${data.genesyscloud_auth_role.Master_Admin.id}"
}
integration_credential_name = "new credential"
expose_client_secret = true
}
resource "genesyscloud_integration_credential" "credentials_hem2" {
name = "credentials_hem7"
credential_type_name = "pureCloudOAuthClient"
fields = {
clientId = genesyscloud_oauth_client.hem_Client2.client_id
clientSecret = genesyscloud_oauth_client.hem_Client2.client_secret
}
}
------------------------------
Hemanth Dogiparthi
Manager, Software Engineering
------------------------------