The JWT claim name to read the value from. * * 'override_on_update' => If true, the field is updated from the JWT on * every login. If false, the value is only written * once when the account is created. * Set to false for fields the user should be able * to change independently (e.g. username). * * 'allow_manual_change'=> If true, the user can edit this field in their * Wavelog profile. If false, the field is locked * and managed exclusively by the identity provider. * * You can add any additional column from the users table here. Fields not * listed will use their default values on account creation and will not be * touched on subsequent logins. * * The following fields are required for account creation and must be present: * - user_name * - user_email * - user_callsign */ $config['auth_headers_claim_config'] = [ 'user_name' => [ 'claim' => 'preferred_username', 'override_on_update' => true, 'allow_manual_change' => false ], 'user_email' => [ 'claim' => 'email', 'override_on_update' => true, 'allow_manual_change' => false ], 'user_callsign' => [ 'claim' => 'callsign', 'override_on_update' => true, 'allow_manual_change' => false ], 'user_locator' => [ 'claim' => 'locator', 'override_on_update' => true, 'allow_manual_change' => false ], 'user_firstname' => [ 'claim' => 'given_name', 'override_on_update' => true, 'allow_manual_change' => false ], 'user_lastname' => [ 'claim' => 'family_name', 'override_on_update' => true, 'allow_manual_change' => false ], ]; /** *-------------------------------------------------------------------------- * Clubstation Mapping *-------------------------------------------------------------------------- * * Assigns users to clubstations during login or on user creation. Leave blank to disable. * * It is recommended that "show full group path" in Keycloak is disabled to prevent leading slashes. * * $config['auth_header_clubstation_claim'] should be set to the JWT claim that * provides a multi-valued group attribute (RFC7643 4.1.2). The common claim * is "groups" per RFC9068 2.2.3.1. * * For $config['auth_header_clubstation_direct'] each key is a clubstation id, its values are: * * 'group' => The name of the group defined in the IdP. * * 'update_on_login' => If user membership should be updated on each login. If * false user is only assigned on user creation. If true * users are removed and added to clubstations on login. * Recommended to be set to true. * * Example: * $config['auth_header_clubstation_direct'] = [ * 9 => [ * 'group' => 'wl_society_station_group', * 'update_on_login' => true * ], * 15 => [ * 'group' => 'wl_special_event_station', * 'update_on_login' => true * ], * ]; * * */ $config['auth_header_clubstation_claim'] = ""; $config['auth_header_clubstation_direct'] = [];