forked from baron/baron-sso
Keep orgfront auto login fallback explicit
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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로 폴백한다', () {
|
||||
|
||||
Reference in New Issue
Block a user