mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
require username claim in JWT
This commit is contained in:
@@ -259,6 +259,10 @@ class Header_auth extends CI_Controller {
|
||||
log_message('error', 'SSO Authentication: Missing email or callsign claim in access token.');
|
||||
$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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user