From e453e6af42bc7d2d744d2d29c22e3dcf20346489 Mon Sep 17 00:00:00 2001 From: Aaron Dalton Date: Tue, 6 Feb 2024 10:08:25 -0500 Subject: [PATCH] Fix key definition --- src/utils/auth/null.js | 2 +- src/utils/auth/proxy.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/auth/null.js b/src/utils/auth/null.js index 009c5b7c..659824f1 100644 --- a/src/utils/auth/null.js +++ b/src/utils/auth/null.js @@ -4,7 +4,7 @@ function createNullAuth() { return { authorize: () => NullPermissions, getContext: () => ({ - provider: NullAuthKey, + provider: "null", }), }; } diff --git a/src/utils/auth/proxy.js b/src/utils/auth/proxy.js index 98789a18..9945dc63 100644 --- a/src/utils/auth/proxy.js +++ b/src/utils/auth/proxy.js @@ -10,7 +10,7 @@ function getProxyPermissions(userHeader, groupHeader, request) { function createProxyAuth({ groupHeader, userHeader }) { return { getContext: (request) => ({ - type: ProxyAuthKey, + provider: "proxy", ...(userHeader && { [userHeader]: request.headers.get(userHeader) }), ...(groupHeader && { [groupHeader]: request.headers.get(groupHeader) }), }),