Skip to content

Commit

Permalink
keep SESSION_STORE_TYPE for local dev and for test
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jun 13, 2024
1 parent 3f951ce commit 8648adb
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion development/idp-local/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

$SECURE_COOKIE = Env::get('SECURE_COOKIE', true);
$SESSION_DURATION = (int)(Env::get('SESSION_DURATION', (60 * 60 * 10))); // 10 hours.
$SESSION_STORE_TYPE = Env::get('SESSION_STORE_TYPE', 'phpsession');
$MYSQL_HOST = Env::get('MYSQL_HOST', '');
$MYSQL_DATABASE = Env::get('MYSQL_DATABASE', '');
$MYSQL_USER = Env::get('MYSQL_USER', '');
Expand Down Expand Up @@ -1326,7 +1327,7 @@
*
* The default datastore is 'phpsession'.
*/
'store.type' => 'sql',
'store.type' => $SESSION_STORE_TYPE,

/*
* The DSN the sql datastore should connect to.
Expand Down
3 changes: 2 additions & 1 deletion development/idp2-local/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

$SECURE_COOKIE = Env::get('SECURE_COOKIE', true);
$SESSION_DURATION = (int)(Env::get('SESSION_DURATION', (60 * 60 * 10))); // 10 hours.
$SESSION_STORE_TYPE = Env::get('SESSION_STORE_TYPE', 'phpsession');
$MYSQL_HOST = Env::get('MYSQL_HOST', '');
$MYSQL_DATABASE = Env::get('MYSQL_DATABASE', '');
$MYSQL_USER = Env::get('MYSQL_USER', '');
Expand Down Expand Up @@ -1326,7 +1327,7 @@
*
* The default datastore is 'phpsession'.
*/
'store.type' => 'sql',
'store.type' => $SESSION_STORE_TYPE,

/*
* The DSN the sql datastore should connect to.
Expand Down
2 changes: 1 addition & 1 deletion development/idp3-local/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@
*
* (This option replaces the old 'session.handler'-option.)
*/
'store.type' => 'sql',
'store.type' => 'phpsession',


/*
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ services:
THEME_COLOR_SCHEME: "orange-light_blue"
HUB_MODE: "true"

ssp-idp1.local:
ssp-idp1.local: # using a database session store type ("sql")
build: .
depends_on:
- db
Expand Down Expand Up @@ -181,6 +181,7 @@ services:
PROFILE_URL_FOR_TESTS: "http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub"
SECURE_COOKIE: "false"
SHOW_SAML_ERRORS: "true"
SESSION_STORE_TYPE: "sql"
MYSQL_HOST: "db"
MYSQL_DATABASE: "silauth"
MYSQL_USER: "silauth"
Expand Down
3 changes: 2 additions & 1 deletion dockerbuild/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

$SECURE_COOKIE = Env::get('SECURE_COOKIE', true);
$SESSION_DURATION = (int)(Env::get('SESSION_DURATION', (60 * 60 * 10))); // 10 hours.
$SESSION_STORE_TYPE = Env::get('SESSION_STORE_TYPE', 'phpsession');
$MYSQL_HOST = Env::get('MYSQL_HOST', '');
$MYSQL_DATABASE = Env::get('MYSQL_DATABASE', '');
$MYSQL_USER = Env::get('MYSQL_USER', '');
Expand Down Expand Up @@ -1336,7 +1337,7 @@
*
* The default datastore is 'phpsession'.
*/
'store.type' => 'sql',
'store.type' => $SESSION_STORE_TYPE,

/*
* The DSN the sql datastore should connect to.
Expand Down
3 changes: 2 additions & 1 deletion local.env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ LOGGING_LEVEL=
# LOGGING_HANDLER default is stderr, or may be one of: syslog, file, errlog, stderr
LOGGING_HANDLER=

# Session store configuration.
# Session store configuration. SESSION_STORE_TYPE can be "sql" or "phpsession"
SESSION_STORE_TYPE=
SESSION_DURATION=
MYSQL_HOST=
MYSQL_DATABASE=
Expand Down

0 comments on commit 8648adb

Please sign in to comment.