From a1d516cd61279ef0bb455821767dd96db8d92796 Mon Sep 17 00:00:00 2001 From: chan Date: Tue, 21 Apr 2026 17:18:45 +0900 Subject: [PATCH] test: fix TestPasswordLogin_OIDC_Success to expect sessionJwt in OIDC flow --- backend/internal/handler/auth_handler_login_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/internal/handler/auth_handler_login_test.go b/backend/internal/handler/auth_handler_login_test.go index 08d06e2b..64833990 100644 --- a/backend/internal/handler/auth_handler_login_test.go +++ b/backend/internal/handler/auth_handler_login_test.go @@ -633,8 +633,11 @@ func TestPasswordLogin_OIDC_Success(t *testing.T) { if got["redirectTo"] != "http://rp/cb" { t.Errorf("expected redirectTo http://rp/cb, got %v", got["redirectTo"]) } - if _, ok := got["sessionJwt"]; ok { - t.Errorf("expected OIDC response to omit sessionJwt, got %v", got["sessionJwt"]) + if got["sessionJwt"] != "valid-jwt" { + t.Errorf("expected sessionJwt to be valid-jwt, got %v", got["sessionJwt"]) + } + if got["token"] != "valid-jwt" { + t.Errorf("expected token to be valid-jwt, got %v", got["token"]) } }