OAuth2 Authenticator (Client Credentials) with Request Body
Dear Community
I am having an issue using OAuth2 Authenticator (Client Credentials) to retrieve a token from by provider.
The provider-specified server details are as follows (obfuscated):
• Resource URL: https://token_provider.com/v2/token
• HTTP Method: POST
• Content-Type: application/x-www-form-urlencoded
• Response Format: JSONThe curl command works fine:
curl -d “granttype=clientcredentials” -d “clientid=AAAA” -d “clientsecret=BBBB” -d “scope=thisscope” https://tokenprovider.com/v2/token
As does postman when I specify body request parameters:
However, when I try use a OAuth2 Authenticator (Client Credentials) node (below), I get
“Execute failed: Could not retrieve access token (unsupportedgranttype - no message provided” .
Postman failed when I used query params and only worked using body key-value pairs. So I am wondering how to do the same thing using the KNIME node.
Cheers