Hello! Long time.
My client's Pardot support team recently reached out to inform me that we'll need to change our Pardot integrations from Salesforce SSO Username-Password Flow to Client Credentials Flow.
It's been a while since I'd done anything new with this lib so I had to remind myself...
Looking at the API, both of grant_type=password and grant_type=refresh_token are supported out of the box but grant_type=client_credentials is not. Fortunately, the API's withCustomAuthenticationHandler method will allow me roll my own auth handler to support the conversion (great design!).
Once I get our integration working with this method using grant_type=client_credentials I will post back with that in-place solution as well as a PR to add it as a first class feature of this library.
cc @melloware
Hello! Long time.
My client's Pardot support team recently reached out to inform me that we'll need to change our Pardot integrations from Salesforce SSO Username-Password Flow to Client Credentials Flow.
It's been a while since I'd done anything new with this lib so I had to remind myself...
Looking at the API, both of
grant_type=passwordandgrant_type=refresh_tokenare supported out of the box butgrant_type=client_credentialsis not. Fortunately, the API'swithCustomAuthenticationHandlermethod will allow me roll my own auth handler to support the conversion (great design!).Once I get our integration working with this method using
grant_type=client_credentialsI will post back with that in-place solution as well as a PR to add it as a first class feature of this library.cc @melloware