From 45939098e918041f0ce524fa125cf0a1cdfd49c0 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Sat, 30 Dec 2023 21:51:50 +0100 Subject: Implement authorization in git-lfs-server, test presigned PUTs --- cmd/git-lfs-authenticate/main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cmd/git-lfs-authenticate') diff --git a/cmd/git-lfs-authenticate/main.go b/cmd/git-lfs-authenticate/main.go index f48fe5c..027a2f9 100644 --- a/cmd/git-lfs-authenticate/main.go +++ b/cmd/git-lfs-authenticate/main.go @@ -100,8 +100,11 @@ type authenticateResponse struct { Header map[string]string `json:"header"` // In seconds. ExpiresIn int64 `json:"expires_in,omitempty"` - // expires_at (RFC3339) could also be used, but we leave it out since we - // don't use it. + // The expires_at (RFC3339) property could also be used, but we leave it + // out since we don't use it. It is also possibleto specify the href + // property, making the Git LFS use this instead of the usual Service + // Discovery mechanism. See + // https://github.com/git-lfs/git-lfs/blob/baf40ac99850a62fe98515175d52df5c513463ec/docs/api/server-discovery.md#ssh } func wipe(b []byte) { -- cgit v1.2.3