From aa391f63a669331a5df59d302cd8baa9d64fabe2 Mon Sep 17 00:00:00 2001 From: yhjiango Date: Tue, 23 May 2023 19:11:18 +0800 Subject: [PATCH] feat(objectnode): s3 sts and signature auth 1. sts federation token 2. signature auth code refactor Signed-off-by: yhjiango (cherry picked from commit 4401624f968511a8d442df24c7bca7e7e9c385af) Signed-off-by: yhjiango --- objectnode/api_context.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/objectnode/api_context.go b/objectnode/api_context.go index ecbaa339b..d07d2b5f1 100644 --- a/objectnode/api_context.go +++ b/objectnode/api_context.go @@ -31,9 +31,10 @@ const ( ContextKeyErrorMessage = "error_message" ContextKeyBucket = "bucket" ContextKeyObject = "object" + ContextKeyUid = "uid" + ContextKeyAccessKey = "access_key" ContextKeyRequester = "requester" ContextKeyOwner = "owner" - ContextKeyAccessKey = "access_key" ) func SetRequestID(r *http.Request, requestID string) {