Add authentication check to secure ping action and propagate auth state in PingScreen
Build and Publish Docker Images / build-and-push (., backend/infrastructure/gateway/Dockerfile, api-gateway, api-gateway) (push) Successful in 8m16s
Build and Publish Docker Images / build-and-push (., backend/services/ping/Dockerfile, ping-service, ping-service) (push) Successful in 7m38s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Successful in 2m58s
Build and Publish Docker Images / build-and-push (., config/docker/keycloak/Dockerfile, keycloak, keycloak) (push) Successful in 1m46s

This commit is contained in:
2026-03-16 23:35:49 +01:00
parent 04f8f2aae1
commit 4344d04ff9
3 changed files with 15 additions and 5 deletions
@@ -36,6 +36,7 @@ fun MainApp() {
// Delta-Sync blueprint: resolve the Ping feature view model via Koin.
val pingViewModel: PingViewModel = koinViewModel()
val loginViewModel: LoginViewModel = koinViewModel()
val authState by authTokenManager.authState.collectAsState()
when (currentScreen) {
is AppScreen.Landing -> LandingScreen(
@@ -58,7 +59,8 @@ fun MainApp() {
is AppScreen.Ping -> PingScreen(
viewModel = pingViewModel,
onBack = { navigationPort.navigateToScreen(AppScreen.Home) } // Navigate back to Home
onBack = { navigationPort.navigateToScreen(AppScreen.Home) },
isAuthenticated = authState.isAuthenticated
)
is AppScreen.Profile -> AuthStatusScreen(