From 6eb4c293ffab24a1f66c0b79acdba2d0305d03aa Mon Sep 17 00:00:00 2001 From: Lectom Date: Thu, 30 Apr 2026 16:41:32 +0900 Subject: [PATCH] Keep orgfront auto login fallback explicit --- backend/internal/handler/auth_handler.go | 2 +- backend/internal/handler/auth_handler_linked_test.go | 4 ++-- userfront/test/linked_rp_launch_test.dart | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/backend/internal/handler/auth_handler.go b/backend/internal/handler/auth_handler.go index 2beeab8d..214877f1 100644 --- a/backend/internal/handler/auth_handler.go +++ b/backend/internal/handler/auth_handler.go @@ -7434,7 +7434,7 @@ func resolveLinkedRPAutoLoginURL(clientID string, metadata map[string]interface{ } case "orgfront": if value := strings.TrimRight(strings.TrimSpace(os.Getenv("ORGFRONT_URL")), "/"); value != "" { - return value + "/login?auto=1" + return value + "/login" } } diff --git a/backend/internal/handler/auth_handler_linked_test.go b/backend/internal/handler/auth_handler_linked_test.go index d555cf3f..bfb2ef96 100644 --- a/backend/internal/handler/auth_handler_linked_test.go +++ b/backend/internal/handler/auth_handler_linked_test.go @@ -61,7 +61,7 @@ func TestListLinkedRps_PriorityAndAggregation(t *testing.T) { "client_name": "OrgFront", "metadata": map[string]interface{}{ "auto_login_supported": true, - "auto_login_url": "http://localhost:5175/login?auto=1", + "auto_login_url": "http://localhost:5175/login", }, "redirect_uris": []string{ "http://localhost:5175/auth/callback", @@ -197,7 +197,7 @@ func TestListLinkedRps_PriorityAndAggregation(t *testing.T) { } } assert.True(t, orgfrontItem.AutoLoginSupported) - assert.Equal(t, "http://localhost:5175/login?auto=1", orgfrontItem.AutoLoginURL) + assert.Equal(t, "http://localhost:5175/login", orgfrontItem.AutoLoginURL) assert.Equal(t, orgfrontItem.AutoLoginURL, orgfrontItem.InitURL) } diff --git a/userfront/test/linked_rp_launch_test.dart b/userfront/test/linked_rp_launch_test.dart index d3b72b1d..c6846a91 100644 --- a/userfront/test/linked_rp_launch_test.dart +++ b/userfront/test/linked_rp_launch_test.dart @@ -54,10 +54,7 @@ void main() { ), ); - expect( - launchUrl, - 'https://example.com/login?auto=1', - ); + expect(launchUrl, 'https://example.com/login?auto=1'); }); test('자동 로그인 지원 앱은 autoLoginUrl이 없으면 initUrl로 폴백한다', () {