From 6e97a3edaa18ef8e5b16feba29f04e993957b7a7 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Tue, 2 Jan 2024 17:16:55 +0100 Subject: Token types, download verification --- cmd/git-lfs-authenticate/main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd/git-lfs-authenticate/main.go') 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 } type gitolfs3Claims struct { + Type string `json:"type"` Repository string `json:"repository"` Permission string `json:"permission"` } @@ -190,6 +191,7 @@ func main() { expiresIn := time.Hour * 24 claims := customClaims{ Gitolfs3: gitolfs3Claims{ + Type: "batch-api", Repository: repo, Permission: operation, }, -- cgit v1.2.3