Skip to content

getCreds incorrectly compares a requests URL scheme when against localhost #612

Closed

Description

@WillHipschman

In client.go in getCreds if we make a request against mymachinename but the remote is localhost then we will not authenticate correctly.

if req.URL.Scheme != apiUrl.Scheme ||
    req.URL.Host != apiUrl.Host {

Activity

  1. whoisj commented on Aug 27, 2015

    @whoisj

    Git allows for just about anything in the host and scheme values. Ideally, git-lfs would as well and then just report the failure if no method for utilizing the scheme exists, or it is unable to reach the host.

  2. technoweenie commented on Aug 28, 2015

    @technoweenie
    Contributor

    This should be solved in f71969d from #611

  3. technoweenie commented on Sep 3, 2015

    @technoweenie
    Contributor

    #611 has been merged. Let me know if you still have issues.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions