aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/git-lfs-authenticate
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2023-12-30 21:51:50 +0100
committerLibravatar Rutger Broekhoff2023-12-30 21:51:50 +0100
commit45939098e918041f0ce524fa125cf0a1cdfd49c0 (patch)
treea8846a610c5535dbbeaf73f17edb5286ad751903 /cmd/git-lfs-authenticate
parentdc85c97f3730b066f3603081d21df67349f9a84d (diff)
downloadgitolfs3-45939098e918041f0ce524fa125cf0a1cdfd49c0.tar.gz
gitolfs3-45939098e918041f0ce524fa125cf0a1cdfd49c0.zip
Implement authorization in git-lfs-server, test presigned PUTs
Diffstat (limited to 'cmd/git-lfs-authenticate')
-rw-r--r--cmd/git-lfs-authenticate/main.go7
1 files changed, 5 insertions, 2 deletions
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 {
100 Header map[string]string `json:"header"` 100 Header map[string]string `json:"header"`
101 // In seconds. 101 // In seconds.
102 ExpiresIn int64 `json:"expires_in,omitempty"` 102 ExpiresIn int64 `json:"expires_in,omitempty"`
103 // expires_at (RFC3339) could also be used, but we leave it out since we 103 // The expires_at (RFC3339) property could also be used, but we leave it
104 // don't use it. 104 // out since we don't use it. It is also possibleto specify the href
105 // property, making the Git LFS use this instead of the usual Service
106 // Discovery mechanism. See
107 // https://github.com/git-lfs/git-lfs/blob/baf40ac99850a62fe98515175d52df5c513463ec/docs/api/server-discovery.md#ssh
105} 108}
106 109
107func wipe(b []byte) { 110func wipe(b []byte) {