require username claim in JWT

This commit is contained in:
HadleySo
2026-03-18 22:41:00 -05:00
parent 35d9e0060c
commit 6ec147bc83

View File

@@ -259,6 +259,10 @@ class Header_auth extends CI_Controller {
log_message('error', 'SSO Authentication: Missing email or callsign claim in access token.'); log_message('error', 'SSO Authentication: Missing email or callsign claim in access token.');
$this->_sso_error(); $this->_sso_error();
} }
if (empty($mapped['user_name'])) {
log_message('error', 'SSO Authentication: Missing username claim in access token.');
$this->_sso_error();
}
// $club_id = $this->config->item('auth_header_club_id', 'sso') ?: ''; // TODO: Add support to add a user to a clubstation // $club_id = $this->config->item('auth_header_club_id', 'sso') ?: ''; // TODO: Add support to add a user to a clubstation