|
|
|
|
|
|
|
|
throw new TransportException(uri, MessageFormat.format( |
|
|
throw new TransportException(uri, MessageFormat.format( |
|
|
JGitText.get().authenticationNotSupported, uri)); |
|
|
JGitText.get().authenticationNotSupported, uri)); |
|
|
CredentialsProvider credentialsProvider = getCredentialsProvider(); |
|
|
CredentialsProvider credentialsProvider = getCredentialsProvider(); |
|
|
|
|
|
if (authAttempts > 1) |
|
|
|
|
|
credentialsProvider.reset(uri); |
|
|
if (3 < authAttempts |
|
|
if (3 < authAttempts |
|
|
|| !authMethod.authorize(uri, credentialsProvider)) { |
|
|
|| !authMethod.authorize(uri, credentialsProvider)) { |
|
|
credentialsProvider.reset(uri); |
|
|
|
|
|
throw new TransportException(uri, |
|
|
throw new TransportException(uri, |
|
|
JGitText.get().notAuthorized); |
|
|
JGitText.get().notAuthorized); |
|
|
} |
|
|
} |
|
|
credentialsProvider.reset(uri); |
|
|
|
|
|
authAttempts++; |
|
|
authAttempts++; |
|
|
continue; |
|
|
continue; |
|
|
|
|
|
|