Skip to content

Support multiple OAuth flows in ForceClient.cs via IAuthProvider #78

Description

@DarkTigerFAF

Hello, Anthony

Currently, ForceClient.cs can only log in with the username–password flow. This makes it difficult to use other flows (Web Server, Client Credentials, Refresh Token) that are already implemented in AuthenticationClient.cs.

Proposal: introduce a simple IAuthProvider strategy interface. Each provider wraps the existing AuthenticationClient methods and returns an AccessTokenResponse. ForceClient consumes the result and initializes itself.

Would you like me to open a PR to implement this?

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