You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the Username Password flow, you can directly authenticate with the `Forrest::authenticate()` method.
117
117
118
-
> To use this authentication you must add your username, and password to the config file. Security token might need to be ammended to your password unless your IP address is whitelisted.
118
+
> To use this authentication you must add your username, and password to the config file. Security token might need to be amended to your password unless your IP address is whitelisted.
119
+
120
+
```php
121
+
Route::get('/authenticate', function()
122
+
{
123
+
Forrest::authenticate();
124
+
return Redirect::to('/');
125
+
});
126
+
```
127
+
128
+
129
+
#### Client Credentials authentication flow
130
+
131
+
With the Client Credentials flow, you can directly authenticate with the `Forrest::authenticate()` method.
132
+
133
+
> Using this authentication method only requires your consumer secret and key. Your Salesforce Connected app must also have the "Client Credentials Flow" Enabled in its settings.
4. Update your config file with values for `loginURL`, `username`, and `password`.
136
151
With the Username Password SOAP flow, you can directly authenticate with the `Forrest::authenticate()` method.
137
152
138
-
> To use this authentication you can add your username, and password to the config file. Security token might need to be ammended to your password unless your IP address is whitelisted.
153
+
> To use this authentication you can add your username, and password to the config file. Security token might need to be amended to your password unless your IP address is whitelisted.
If your application requires logging in to salesforce as different users, you can alternatively pass in the login url, username, and password to the `Forrest::authenticateUser()` method.
149
164
150
-
> Security token might need to be ammended to your password unless your IP address is whitelisted.
165
+
> Security token might need to be amended to your password unless your IP address is whitelisted.
0 commit comments