-
Notifications
You must be signed in to change notification settings - Fork 128
Expand file tree
/
Copy pathlocal.config.php
More file actions
74 lines (66 loc) · 2.41 KB
/
local.config.php
File metadata and controls
74 lines (66 loc) · 2.41 KB
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
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication/Authorization Method
|--------------------------------------------------------------------------
|
| Specifies which Class to use when creating the Auth class
|
| Currently supported values are:
| OAuth - Uses the default OAuth class
| BasicAuth - Uses Basic Authentication - Mautic >= 2.4
|
| Pass this as the second parameter to specify which to use.
|
| If commented out, will default OAuth. see MauticApiTestCase::getAuth()
|
*/
'AuthMethod' => 'BasicAuth',
/*
|--------------------------------------------------------------------------
| Basic Authentication credentials
|--------------------------------------------------------------------------
|
| Basic Auth uses a simple username password method.
|
| It's important to note, that this is not recommended unless you are
| using HTTPS as your username and password are exposed.
|
| BOTH the username and password are required. It's recommended that
| you add a specific user and ensure a long passPhrase!
|
*/
'userName' => 'admin',
'password' => 'mautic',
/*
|--------------------------------------------------------------------------
| OAuth credentials
|--------------------------------------------------------------------------
|
| The API supports both OAuth1a and OAuth2.
|
| I've found there is more control if you specify which version you want
| to use.
|
| Required mainly for OAuth 1a testing; 'OAuth1a' or 'OAuth2'
|
*/
'version' => 'OAuth1a',
// Required for OAuth1a and OAuth2
'baseUrl' => 'http://localhost/',
// Required for All tests
'apiUrl' => 'http://localhost/api/',
// Required for EmailsTest
'testEmail' => 'notexisting@email.com',
// Required for both OAuth 1a and 2 testing
'accessToken' => '',
// Required only for OAuth 1a testing
'accessTokenSecret' => '',
'requestTokenUrl' => '', // Set with any string to force the library to use the OAuth1.a spec; leave blank to use OAuth2
'clientKey' => '',
'clientSecret' => '',
'callback' => '',
// Required only for OAuth 2 testing.
'refreshToken' => '',
];