Skip to content

Commit 18f6e2a

Browse files
committed
Fix issue 1584
1 parent 611c0b4 commit 18f6e2a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

server/src/main/java/org/cloudfoundry/identity/uaa/login/LoginInfoEndpoint.java

-5
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,6 @@ private String login(Model model, Principal principal, List<String> excludedProm
316316
allIdentityProviders.putAll(samlIdentityProviders);
317317
allIdentityProviders.putAll(oauthIdentityProviders);
318318
}
319-
} else if (!jsonResponse && (accountChooserNeeded || (discoveryEnabled && !discoveryPerformed))) {
320-
// when `/login` is requested to return html response (as opposed to json response)
321-
//Account Chooser and discovery do not need any IdP information
322-
oauthIdentityProviders = Collections.emptyMap();
323-
samlIdentityProviders = Collections.emptyMap();
324319
} else {
325320
samlIdentityProviders = getSamlIdentityProviderDefinitions(allowedIdentityProviderKeys);
326321
oauthIdentityProviders = getOauthIdentityProviderDefinitions(allowedIdentityProviderKeys);

0 commit comments

Comments
 (0)