Skip to content

HTTP vs SSH and download URLs #341

@catphish

Description

@catphish

When a request is made via HTTP to download a file, a request is made to GET /REPO/objects/OID and a hypermedia link is returned, eg: {"download": { "href": "https://some-download.com" } }. This is awesome.

However, when a request is made by SSH, despite the request containing the same information: git-lfs-authenticate REPO download OID, the response seems to be totally different, a link to the root of the repository, on which an additional, seemingly unnecessary request is made for the hypermedia information.

I would very much like to be able to return the {"download": { "href": "https://some-download.com" } } information directly from SSH. Is this possible? If not, it seems like an additional authentication mechanism will be needed for the intermediate HTTP request since we don't have the user's HTTP password.

Thanks! I hope I'm just missing something simple,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions