1
0
forked from baron/baron-sso

Keep orgfront auto login fallback explicit

This commit is contained in:
2026-04-30 16:41:32 +09:00
parent d16f6cdcb4
commit 6eb4c293ff
3 changed files with 4 additions and 7 deletions

View File

@@ -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"
}
}

View File

@@ -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)
}

View File

@@ -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로 폴백한다', () {