Skip to content

Commit e0df1de

Browse files
Refactor PasswordGrantAuthenticationManager.authenticate: improve condition checking for empty login hint
1 parent f008bff commit e0df1de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/cloudfoundry/identity/uaa/authentication/manager/PasswordGrantAuthenticationManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public Authentication authenticate(Authentication authentication) throws Authent
9797

9898
// determine the IdP to use from the list of possible ones
9999
UaaLoginHint loginHintToUse;
100-
if (uaaLoginHint == null) {
100+
if (uaaLoginHint == null || uaaLoginHint.getOrigin() == null) {
101101
if (defaultProvider != null && possibleProviders.contains(defaultProvider)) {
102102
// no login hint was passed, but the default provider qualifies
103103
loginHintToUse = new UaaLoginHint(defaultProvider);

0 commit comments

Comments
 (0)