Skip to content

Commit 234fd6d

Browse files
committed
Fix Config::setExtraConfig Config controller csrf issue
1 parent f94c83c commit 234fd6d

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "passbolt/passbolt_selenium_api",
33
"description": "Passbolt selenium testing helper endpoints",
44
"type": "cakephp-plugin",
5-
"version": "2.0",
5+
"version": "2.2.0",
66
"keywords": [
77
"password",
88
"passbolt",

config/bootstrap.php

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* This allow redefining server config on the fly when running integration tests
2121
*/
2222
if (Configure::read('debug') && Configure::read('passbolt.selenium.active')) {
23+
Configure::load('PassboltSeleniumApi.config', 'default', true);
2324
if (file_exists(TMP . 'selenium' . DS . 'core_extra_config.php')) {
2425
Configure::config('extra_config', new PhpConfig(TMP . 'selenium' . DS));
2526
Configure::load('core_extra_config', 'extra_config', true);

config/config.php

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
return [
3+
'passbolt' => [
4+
'plugins' => [
5+
'selenium_api' => [
6+
'version' => '2.2.0',
7+
'security' => [
8+
'csrfProtection' => [
9+
'unlockedActions' => [
10+
'Config' => ['setExtraConfig']
11+
]
12+
]
13+
],
14+
]
15+
]
16+
]
17+
];

0 commit comments

Comments
 (0)