mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-29 00:55:43 +00:00
1d707ba5f09295aac077805736f55da3618cf39a
The userId was being read inside the Future block, which runs on a thread from ExecutionContext.global. However, gRPC Context.current returns the context for the current thread, not the gRPC handler thread where the JWT claims were attached. This caused setDisplayName and getCurrentUser to always get null/empty userId, resulting in "User not found" errors after successful OAuth. Fix by capturing userId before creating the Future, on the gRPC thread where Context.current has the proper claims attached. This matches the pattern used in EagleServiceImpl.lockAndDoWithUserName. Also update AuthorizationInterceptor publicEndpoints to use CheckOAuthStatus instead of the old ExchangeCode method name. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Migrate EndDiplomacyResolutionPhaseAction and PerformUnaffiliatedHeroesAction to protoless RandomStateSequencer (#4702)
The file is empty.
Languages
Scala
44.5%
C++
19.9%
C#
16.6%
Starlark
10.1%
Go
3.5%
Other
5.3%