mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 22:28:25 +00:00
Chore: Move comment
This commit is contained in:
@@ -124,7 +124,6 @@ export const injectIdentity = fp(async (server: FastifyZodProvider) => {
|
|||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Will always contain an orgId.
|
|
||||||
case AuthMode.IDENTITY_ACCESS_TOKEN: {
|
case AuthMode.IDENTITY_ACCESS_TOKEN: {
|
||||||
const identity = await server.services.identityAccessToken.fnValidateIdentityAccessToken(token, req.realIp);
|
const identity = await server.services.identityAccessToken.fnValidateIdentityAccessToken(token, req.realIp);
|
||||||
req.auth = {
|
req.auth = {
|
||||||
@@ -156,9 +155,9 @@ export const injectIdentity = fp(async (server: FastifyZodProvider) => {
|
|||||||
userId: user.id,
|
userId: user.id,
|
||||||
actor,
|
actor,
|
||||||
user,
|
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
|
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;
|
break;
|
||||||
}
|
}
|
||||||
case AuthMode.SCIM_TOKEN: {
|
case AuthMode.SCIM_TOKEN: {
|
||||||
|
|||||||
Reference in New Issue
Block a user