From dc02c87e2d9b13cc23c0e99c97041010a960fbb8 Mon Sep 17 00:00:00 2001 From: kim Date: Fri, 9 Aug 2024 13:00:20 +0100 Subject: [PATCH] add a note about us only supporting bearer oauth tokens --- internal/middleware/idempotency.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/middleware/idempotency.go b/internal/middleware/idempotency.go index ae14d23ce..193b7d640 100644 --- a/internal/middleware/idempotency.go +++ b/internal/middleware/idempotency.go @@ -80,6 +80,9 @@ func Idempotency() gin.HandlerFunc { // request fingerprint along with idempotency // key to ensure uniqueness across logged-in // device sessions regardless of IP. + // + // NOTE: using the auth header is only an option + // because we ONLY support bearer oauth tokens. key = c.Request.Header.Get("Authorization") + c.Request.UserAgent() + key