-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bitbucket DC reports Must specify at least on AuthenticationModes
and falls back to cli input
#1460
Comments
Must scpecify at least on AuthenticationModes
and fallsback to cli inputMust specify at least on AuthenticationModes
and falls back to cli input
Thanks for raising this issue! As a workaround until this is fixed, could you try manually setting the authentication modes in Git config? git config --global credential.https://<host>.bitbucketAuthModes "oauth,basic" where |
Yeah, the workaround works. Thanks. Update: This works but is inconsistent, look at last comment for more reliable workaround. |
Just had the same issue. I recently had to update my bitbucket password and I could not get the new credentials to stick. Running the above credential config command resolved this. The next time I pushed, Atlassian presented a user/password dialog. |
I finally got time to dig into this more. Setting the authModes works but it prompts for credentials every time. This happens because it tries to validate the credentials against the path less URL. See log below.
Adding Alternatively, i tried to use only GCM makes the assumption that just because Ultimately, i think the solution should involve the following:
|
Remove ESRP-related scripts, as we are no longer using this tool for signing.
After some more digging I found more inconsistent behavior, if i set the credentials directly in WinCred, set the provider as |
The best workaround right now is to use the |
Version
2.3.2
Operating system
Windows
OS version or distribution
Windows 10 x64
Git hosting provider(s)
Bitbucket Server/DC
Other hosting provider
No response
(Azure DevOps only) What format is your remote URL?
None
Can you access the remote repository directly in the browser?
Yes, I can access the repository
Expected behavior
I expected the UI to pop up and prompt me for my username + token
Actual behavior
A fatal message is displayed
Must specify at least one AuthenticationModes
and then a CLI prompt asks for username and password.Logs
The issue is that
BitbucketHelper.GetBaseUri
doesn't consider that Bitbucket DC could be proxied behind a path. For example,https://<host>/bitbucket
. The method drops the needed path and causes 404 errors in the following API requests.Then
DataCenter.BitbucketRestApi.GetAuthenticationMethodsAsync
andDataCenter.BitbucketRestApi.IsOAthInstalledAsync
swallow the 404 errors and 0 Authentication modes are returned.A quick fix would be to have
DataCenter.BitbucketRestApi.GetAuthenticationMethodsAsync
raise an exception on a 404 and the fallback logic inBitbucketHostProvider.GetSupportedAuthenticationsModesAsync
should kick in and i would expect everything to work.The text was updated successfully, but these errors were encountered: