Update oauth_client's authorized_grant_type attribute to accept both SAML2BEARER and SAML2-BEARER values (the API allows both versions, but outputs as SAML2-BEARER in the API and export. It's important that the export be able to be reapplied right away, so this fix handles that).
Otherwise, this can happen when trying to apply an export of the oauth_client resource:
│ Error: expected authorized_grant_type to be one of ["CODE" "TOKEN" "SAML2BEARER" "PASSWORD" "CLIENT-CREDENTIALS"], got SAML2-BEARER
│
│ with genesyscloud_oauth_client.TT_SAML,
│ on genesyscloud.tf line 2799, in resource "genesyscloud_oauth_client" "TT_SAML":
│ 2799: authorized_grant_type = "SAML2-BEARER"
│
╵
Update
oauth_client
'sauthorized_grant_type
attribute to accept bothSAML2BEARER
andSAML2-BEARER
values (the API allows both versions, but outputs as SAML2-BEARER in the API and export. It's important that the export be able to be reapplied right away, so this fix handles that).Otherwise, this can happen when trying to apply an export of the oauth_client resource: