Merge "Fix ChainingCredentialsProvider"
This commit is contained in:
commit
2f0b675a71
|
@ -113,9 +113,15 @@ public boolean get(URIish uri, CredentialItem... items)
|
||||||
throws UnsupportedCredentialItem {
|
throws UnsupportedCredentialItem {
|
||||||
for (CredentialsProvider p : credentialProviders) {
|
for (CredentialsProvider p : credentialProviders) {
|
||||||
if (p.supports(items)) {
|
if (p.supports(items)) {
|
||||||
p.get(uri, items);
|
if (!p.get(uri, items)) {
|
||||||
if (isAnyNull(items))
|
if (p.isInteractive()) {
|
||||||
|
return false; // user cancelled the request
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
if (isAnyNull(items)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue