Skip to content

No Credentials are available when signed in with Microsoft Account #3829

Closed

Description

@MB-Atos

Hi there,
I'm currently facing a somehow weird issue. I tried to clone a repository that uses git lfs, but checkout fails with the message api error: No credentials are available in the security package

credential.helper is set to "manager"

The credentials for the repository are stored in the windows credential manager. Access to repositories on the same server that do not use git lfs are successful.

The error only occurs if the windows user is signed in with a Microsoft Account on Windows 10.

Git Version: 2.23.0.windows1
Git lfs Version: 2.8.0
Git Credential Manager Version: 1.19.0

When using a local user account on the same machine, everything works as expected.

Activity

  1. ddevyatyar commented on Sep 21, 2019

    @ddevyatyar
  2. bk2204 commented on Sep 23, 2019

    @bk2204
    Member

    Hey,

    Are you trying to use Kerberos, NTLM, or Basic authentication? Running the command with GIT_CURL_VERBOSE=1 GIT_TRACE=1 GIT_TRANSFER_TRACE=1 should show which auth type you're using. If you get Negotiate and the Base64-encoded part starts with TlRM, then you're using NTLM; otherwise, you're using Kerberos.

    I suspect what's going on here is that you're trying to use Kerberos and Git LFS doesn't support that at the moment. If that's the case, you'll probably want to either use NTLM or Basic authentication.

  3. MB-Atos commented on Sep 24, 2019

    @MB-Atos
    Author

    Hi,
    that would not why it works with the same configuration on a non Microsoft Account.
    Anyway, I did a test having the switches you mentioned.
    The result is as expected.
    The server requests authentication by LFS-Authenticate: NTLM
    The client sends the request with a www-Authenticate header Www-Authenticate: NTLM TlRM*****

    So NTLM is used as expected.
    Regards,
    Matthias

  4. bk2204 commented on Sep 24, 2019

    @bk2204
    Member

    I'm really not sure why this is occurring. This message is from the remote server when performing a batch request, so for some reason the server is (presumably) complaining about your credentials.

    None of the maintainers use NTLM with Git LFS, so while we're happy to accept patches for NTLM-related issues, we aren't really able to troubleshoot them. I'd suggest trying a different authentication mechanism or reaching out to your Git server admin for assistance.

  5. MB-Atos commented on Sep 25, 2019

    @MB-Atos
    Author

    Probably it is complaining, because it is not correct. ;) I do know the different authentication mechanisms and how they work. The question is, why are the correct credentials used, with a local or domain windows account, wheres it is not on an MS Account. Maybe, I'll track that down in code on my own - but that might take a while.

  6. bk2204 commented on Oct 25, 2019

    @bk2204
    Member

    I have a guess about what might be the problem here. Can you build #3881 and see if that works for you when pushing?

  7. arashmhashemi commented on Nov 5, 2019

    @arashmhashemi

    @bk2204 @MatBenAtos, I have the same problem (signed in with Microsoft account on win 10)

    Downgraded to git-lfs/2.7.2, it prompted for user/password twice and worked fine after.

  8. bk2204 commented on Nov 5, 2019

    @bk2204
    Member

    As mentioned in #3881, we'll need someone who can build and test with NTLM to troubleshoot this problem. None of the core team members use NTLM, so without someone willing to fix this, it will remain as it is.

  9. MB-Atos commented on Nov 6, 2019

    @MB-Atos
    Author

    I'll give it a try; but will probably need till the weekend. Will come back with results asap.

  10. added
    help-wanted
    on Aug 14, 2020
  11. MovGP0 commented on Jun 1, 2021

    @MovGP0

    When using user FOO\user on an non domain joined machine and wanting to access an resource with user BAR\user, GIT LFS is supposed to use the credentials in the Windows Credential manager. GIT properly uses those, but GIT LFS seems to ignore them.
    image

  12. bk2204 commented on Jun 1, 2021

    @bk2204
    Member

    NTLM is going to be removed in the next release (as outlined in #4247), which is likely to happen June (this month) or July. So there will be no further fixes forthcoming here, and as a result I'm going to close this issue.

  13. ganegaar commented on Nov 15, 2022

    @ganegaar

    I got the error in git-lfs. I found the issue to be because of Windows Hello login. When I disabled the Windows Hello, and used password to login to domain account when I login to my computer, the issue got resolved. More details about why this happens is here:
    https://katystech.blog/azure/azure-ad-and-windows-hello-sso-to-on-premise-resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help-wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions