Skip to content

Commit fac3f4f

Browse files
matthewhiltonbwalkerl
authored andcommitted
bugfix: purge sessions on simplesaml upgrade
1 parent ee33ac2 commit fac3f4f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

db/upgrade.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,5 +410,11 @@ function xmldb_auth_saml2_upgrade($oldversion) {
410410
upgrade_plugin_savepoint(true, 2023100300, 'auth', 'saml2');
411411
}
412412

413+
if ($oldversion < 2024092001) {
414+
// Due to simplesaml library update, we need to purge all existing sessions.
415+
$DB->delete_records('auth_saml2_kvstore', ['type' => 'session']);
416+
upgrade_plugin_savepoint(true, 2024092001, 'auth', 'saml2');
417+
}
418+
413419
return true;
414420
}

version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
defined('MOODLE_INTERNAL') || die();
2626

27-
$plugin->version = 2023100301; // The current plugin version (Date: YYYYMMDDXX).
28-
$plugin->release = 2023100301; // Match release exactly to version.
27+
$plugin->version = 2025081500; // The current plugin version (Date: YYYYMMDDXX).
28+
$plugin->release = 2025081500; // Match release exactly to version.
2929
$plugin->requires = 2017051509; // Requires PHP 7, 2017051509 = T12. M3.3
3030
// Strictly we require either Moodle 3.5 OR
3131
// we require Totara 3.3, but the version number

0 commit comments

Comments
 (0)