-
-
Notifications
You must be signed in to change notification settings - Fork 117
/
config.php
80 lines (70 loc) · 2.35 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/**
* Configuration options for Salesforce Oath settings and REST API defaults.
*/
return [
/*
* Options include WebServer or UserPassword
*/
'authentication' => 'WebServer',
/*
* Enter your credentials
* Username and Password are only necessary for UserPassword flow.
* Likewise, callbackURI is only necessary for WebServer flow.
*/
'credentials' => [
//Required:
'consumerKey' => env('CONSUMER_KEY'),
'consumerSecret' => env('CONSUMER_SECRET'),
'callbackURI' => env('CALLBACK_URI'),
'loginURL' => env('LOGIN_URL'),
// Only required for UserPassword authentication:
'username' => env('USERNAME'),
// Security token might need to be ammended to password unless IP Address is whitelisted
'password' => env('PASSWORD'),
],
/*
* These are optional authentication parameters that can be specified for the WebServer flow.
* https://help.salesforce.com/apex/HTViewHelpDoc?id=remoteaccess_oauth_web_server_flow.htm&language=en_US
*/
'parameters' => [
'display' => '',
'immediate' => false,
'state' => '',
'scope' => '',
'prompt' => '',
],
/*
* Default settings for resource requests.
* Format can be 'json', 'xml' or 'none'
* Compression can be set to 'gzip' or 'deflate'
*/
'defaults' => [
'method' => 'get',
'format' => 'json',
'compression' => false,
'compressionType' => 'gzip',
],
/*
* Where do you want to store access tokens fetched from Salesforce
*/
'storage' => [
'type' => 'session', // 'session' or 'cache' are the two options
'path' => 'forrest_', // unique storage path to avoid collisions
'expire_in' => 60, // number of minutes to expire cache/session
'store_forever' => false, // never expire cache/session
],
/*
* If you'd like to specify an API version manually it can be done here.
* Format looks like '32.0'
*/
'version' => '',
/*
* Optional (and not recommended) if you need to override the instance_url returned from Saleforce
*/
'instanceURL' => '',
/*
* Language
*/
'language' => 'en_US',
];