From 831da10073af25c65234829257e7ee9650c17925 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard <62331820+DanielHougaard@users.noreply.github.com> Date: Wed, 13 Mar 2024 13:43:48 +0100 Subject: [PATCH] Chore: Move comment --- backend/src/server/plugins/auth/inject-identity.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/src/server/plugins/auth/inject-identity.ts b/backend/src/server/plugins/auth/inject-identity.ts index 5fcd3635b..dceb31c03 100644 --- a/backend/src/server/plugins/auth/inject-identity.ts +++ b/backend/src/server/plugins/auth/inject-identity.ts @@ -124,7 +124,6 @@ export const injectIdentity = fp(async (server: FastifyZodProvider) => { }; break; } - // Will always contain an orgId. case AuthMode.IDENTITY_ACCESS_TOKEN: { const identity = await server.services.identityAccessToken.fnValidateIdentityAccessToken(token, req.realIp); req.auth = { @@ -156,9 +155,9 @@ export const injectIdentity = fp(async (server: FastifyZodProvider) => { userId: user.id, actor, user, - orgId: "API_KEY", + orgId: "API_KEY", // We set the orgId to an arbitrary value, since we can't link an API key to a specific org. We have to deprecate API keys soon! authMethod: null - }; // We set the orgId to an arbitrary value, since we can't link an API key to a specific org. We have to deprecate API keys soon! + }; break; } case AuthMode.SCIM_TOKEN: {