Changing JWT low-security to alg none check only. DOCS ok

This commit is contained in:
HadleySo
2026-03-19 22:33:17 -05:00
parent d3f22710aa
commit df355ebd7d

View File

@@ -202,8 +202,8 @@ class Header_auth extends CI_Controller {
return null;
}
$alg = $header['alg'] ?? '';
if (!in_array($alg, ['RS256', 'RS384', 'RS512', 'ES256', 'ES384'], true)) {
$alg = $header['alg'] ?? 'none';
if ($alg == "none") {
log_message('error', 'SSO Authentication: Algorithm "' . $alg . '" is not allowed.');
return null;
}