userService->createOrUpdateUserFromSSO(SSOUser::fromProxyAuthRequest($request)); } catch (Throwable $e) { Log::error($e->getMessage(), ['exception' => $e]); } return null; } private static function validateProxyIp(Request $request): bool { return IpUtils::checkIp($request->ip(), config('koel.proxy_auth.allow_list')); } }