ADR-0131: Keycloak sign-in in the Windows engineering client
Foundation / checks (ecs) (push) Successful in 2m21s
Foundation / checks (deploy) (push) Successful in 4m1s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 7m21s
Foundation / checks (network) (push) Canceled after 9m43s
Foundation / checks (checks) (push) Canceled after 9m49s
Foundation / checks (postgres) (push) Canceled after 9m43s
Foundation / checks (client) (push) Canceled after 9m48s
Foundation / checks (ecs) (push) Successful in 2m21s
Foundation / checks (deploy) (push) Successful in 4m1s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 7m21s
Foundation / checks (network) (push) Canceled after 9m43s
Foundation / checks (checks) (push) Canceled after 9m49s
Foundation / checks (postgres) (push) Canceled after 9m43s
Foundation / checks (client) (push) Canceled after 9m48s
Sign In / Register opens the system browser (PKCE S256, loopback 127.0.0.1:47600) and keeps the refresh token in Windows Credential Manager. The client then fetches a 10-minute grant from grants.aeternalisgames.com and connects to the cellular DEV region. It renews the grant about a minute before expiry through SessionRefresh, and again after a lost connection. Sign Out closes the session and revokes the login at the broker and at Keycloak. Grant replies are cross-checked against the grant record before use. The manual grant-bundle path stays for developers. The bounded JSON reader moves to evo_json (evo::serialization), shared by the broker and the client. Adds the client-auth tests. Completes work started in another session: main.cpp wiring, refresh expiry tracking, no requests for a superseded session, and clang-tidy and Windows header-order fixes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -69,6 +69,16 @@ if(EVO_BUILD_CLIENT)
|
||||
add_executable(evo-client apps/evo-client/main.cpp apps/evo-client/panels.cpp)
|
||||
target_link_libraries(evo-client PRIVATE evo_client_platform evo_client_ui evo_imgui)
|
||||
target_compile_definitions(evo-client PRIVATE EVO_BUILD_IDENTITY="${EVO_BUILD_IDENTITY}")
|
||||
find_package(Threads REQUIRED)
|
||||
add_library(evo_client_auth STATIC src/client/auth/protocol.cpp src/client/auth/client.cpp)
|
||||
target_link_libraries(evo_client_auth PUBLIC evo_client_ui PRIVATE evo_json Threads::Threads)
|
||||
if(WIN32)
|
||||
target_sources(evo_client_auth PRIVATE src/client/auth/windows.cpp)
|
||||
target_compile_definitions(evo_client_auth PRIVATE WIN32_LEAN_AND_MEAN NOMINMAX)
|
||||
target_link_libraries(evo_client_auth PRIVATE winhttp bcrypt advapi32 shell32 ws2_32)
|
||||
endif()
|
||||
evo_owned_target(evo_client_auth)
|
||||
target_link_libraries(evo-client PRIVATE evo_client_auth)
|
||||
if(EVO_BUILD_QUIC)
|
||||
# M10.5c remote dev session mode over M10 QUIC sessions (ADR-0093); replaces the M9.7
|
||||
# TCP session (ADR-0083), whose dev route is gone (ADR-0087).
|
||||
@@ -133,8 +143,15 @@ if(EVO_BUILD_CLIENT)
|
||||
add_executable(evo-client-panel-tests tests/client_panels.cpp apps/evo-client/panels.cpp)
|
||||
target_include_directories(evo-client-panel-tests PRIVATE "${PROJECT_SOURCE_DIR}/apps/evo-client")
|
||||
target_link_libraries(evo-client-panel-tests PRIVATE evo_client_platform evo_client_ui SDL3::SDL3 evo_imgui)
|
||||
target_link_libraries(evo-client-panel-tests PRIVATE evo_client_auth)
|
||||
evo_owned_target(evo-client-panel-tests)
|
||||
evo_client_runtime(evo-client-panel-tests)
|
||||
# ADR-0131 sign-in: callback, token and grant replies, worker against a scripted platform.
|
||||
add_executable(evo-client-auth-tests tests/client_auth.cpp)
|
||||
target_link_libraries(evo-client-auth-tests PRIVATE evo_client_auth)
|
||||
evo_owned_target(evo-client-auth-tests)
|
||||
add_test(NAME client-auth COMMAND evo-client-auth-tests)
|
||||
set_tests_properties(client-auth PROPERTIES TIMEOUT 60 LABELS "client")
|
||||
add_test(NAME client-panels COMMAND evo-client-panel-tests)
|
||||
add_test(NAME client-lifecycle COMMAND evo-client-lifecycle-tests)
|
||||
add_test(NAME client-smoke COMMAND evo-client --renderer software --frames 3)
|
||||
|
||||
Reference in New Issue
Block a user