feat: completed changes for backend to have k8s auth

This commit is contained in:
=
2025-06-06 23:42:56 +05:30
parent 92030884ec
commit 82c2be64a1
4 changed files with 21 additions and 1 deletions
@@ -155,6 +155,12 @@ export const injectIdentity = fp(async (server: FastifyZodProvider) => {
oidc: token?.identityAuth?.oidc
});
}
if (token?.identityAuth?.kubernetes) {
requestContext.set("identityAuthInfo", {
identityId: identity.identityId,
kubernetes: token?.identityAuth?.kubernetes
});
}
break;
}
case AuthMode.SERVICE_TOKEN: {