Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Client Credentials Flow as Authentication Method #330

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

lamungu
Copy link
Contributor

@lamungu lamungu commented Oct 11, 2023

Description

Adds the Client Credential Flow as a possible authentication method.

How to use

The Client Credentials flow only requires the consumer secret and key generated by the Salesforce Connected App. Client Credentials Flow should also be enabled within Salesforce to allow it to work.

You may then set SF_AUTH_METHOD to ClientCredentials in your .env file, and have the client authenticate directly with Forrest::authenticate()

Known issues

The PHPSpec file was loosely based on the UserPassword spec, which had an issue with the it_should_refresh_the_token_if_token_expired_exception_is_thrown test.

@omniphx
Copy link
Owner

omniphx commented Oct 12, 2023

Thanks, @lamungu!

@omniphx omniphx merged commit 6682a01 into omniphx:master Oct 12, 2023
16 checks passed
@lamungu lamungu deleted the feature/client-credentials-auth branch October 16, 2023 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants