mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Changing JWT low-security to alg none check only. DOCS ok
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user