aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/git-lfs-authenticate
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/git-lfs-authenticate')
-rw-r--r--cmd/git-lfs-authenticate/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/git-lfs-authenticate/main.go b/cmd/git-lfs-authenticate/main.go
index fc98246..d2dee21 100644
--- a/cmd/git-lfs-authenticate/main.go
+++ b/cmd/git-lfs-authenticate/main.go
@@ -89,6 +89,7 @@ func getGitoliteAccess(logger *logger, reqID, path, user, gitolitePerm string) b
89} 89}
90 90
91type gitolfs3Claims struct { 91type gitolfs3Claims struct {
92 Type string `json:"type"`
92 Repository string `json:"repository"` 93 Repository string `json:"repository"`
93 Permission string `json:"permission"` 94 Permission string `json:"permission"`
94} 95}
@@ -190,6 +191,7 @@ func main() {
190 expiresIn := time.Hour * 24 191 expiresIn := time.Hour * 24
191 claims := customClaims{ 192 claims := customClaims{
192 Gitolfs3: gitolfs3Claims{ 193 Gitolfs3: gitolfs3Claims{
194 Type: "batch-api",
193 Repository: repo, 195 Repository: repo,
194 Permission: operation, 196 Permission: operation,
195 }, 197 },