This PR is a proposal to get it working with the limitations in mind. I disabled the map validation for complex values like this one, there is no support & it's discussed here. I changed the var type of endpoint_params from map of a list of strings to map of strings as the go oauth2 SDK expects in the below format::
To me this is a weird format it's neither list nor string but interface{}. Anyways, with this format being expected, list isn't accepted at all. Hence, I chose the json. It's partly inspired from azurerm-provider.
As of now
endpoint_params
part ofoauth_client_credentials
block isn't functional. Below issues were/are flagged::This PR is a proposal to get it working with the limitations in mind. I disabled the
map
validation for complex values like this one, there is no support & it's discussed here. I changed the var type ofendpoint_params
frommap of a list of strings
tomap of strings
as the gooauth2
SDK expects in the below format::To me this is a weird format it's neither
list
norstring
butinterface{}
. Anyways, with this format being expected,list
isn't accepted at all. Hence, I chose thejson
. It's partly inspired from azurerm-provider.An example configuration would look like below::