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.
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
toClientCredentials
in your .env file, and have the client authenticate directly withForrest::authenticate()
Known issues
The PHPSpec file was loosely based on the
UserPassword
spec, which had an issue with theit_should_refresh_the_token_if_token_expired_exception_is_thrown
test.