Hello,
We have noticed a few issues when using integration_credential_name setting of the OAuth client.
- When the setting is used when OAuth is being created, the integration credential is created correctly - however, when that OAuth is then removed, the Integration Credential is not removed automatically.
We would expect it to be removed automatically as it was created automatically as it is a broken reference.
- When we try to add integration_credential_name after the OAuth has already been created, it has no effect.
In other words, if we first create the OAuth without the setting, and then we add the setting later, the Integration Credential is not created.
TF detects the change:
...
- integration_credential_name = "cicd_test3_integration_credential"
...
TF applies the change:
...
module.oauth_client.genesyscloud_oauth_client.cicd_test3: Modifications complete
...
Credential is not there in /api/v2/integrations/credentials API call.
- API call GET/api/v2/oauth/clients does not seem to return integration_credential_name nor integration_credential_id even though TF shows they are being created as part of the OAuth object:
- resource "genesyscloud_oauth_client" "cicd_test" {
... - integration_credential_id = (known after apply)
- integration_credential_name = "cicd_test_integration_credential"
...
Thank you.