From be0e7a4a9a342027f4363037c83cb201215e4986 Mon Sep 17 00:00:00 2001 From: greiser Date: Mon, 27 Jul 2026 09:03:40 +0200 Subject: [PATCH 1/2] Align SSO token length with other LMS plugins Lengthen generated tokens from 20 to 30 characters, matching the DB column size (char(30)) and the value used by the equivalent auth plugin implementation for other LMS platforms. --- classes/sso/token/token_service.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/sso/token/token_service.php b/classes/sso/token/token_service.php index 9c34aaf..3648695 100644 --- a/classes/sso/token/token_service.php +++ b/classes/sso/token/token_service.php @@ -89,6 +89,6 @@ private static function has_token_timed_out(sso_token $token): bool { * @return string */ private static function generate_token(): string { - return auth_mumie_get_token(20); + return auth_mumie_get_token(30); } } From 4f4c7bc487ddda2dd6d389c2c355401b217151f4 Mon Sep 17 00:00:00 2001 From: greiser Date: Mon, 27 Jul 2026 10:05:28 +0200 Subject: [PATCH 2/2] Add changelog entry for SSO token length fix --- changelog.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/changelog.md b/changelog.md index bd5ea5f..42a6b9e 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,10 @@ All important changes to this plugin will be documented in this file +## TODO +### Changed +- Increased the SSO token length from 20 to 30 characters, matching the other LMS plugin implementations + ## [1.9.0] - 2026-06-29 ### Added - SSO when opening the Multi Problem Selector for the Problem Pool