Skip to content

Salesforce SSO: Add support for Client Credentials Flow #108

Description

@FlipWarthog

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions