mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 12:27:28 +00:00
feat: client secret optimization in login
This commit is contained in:
@@ -64,9 +64,11 @@ export const identityUaServiceFactory = ({
|
|||||||
ipAddress: ip,
|
ipAddress: ip,
|
||||||
trustedIps: identityUa.clientSecretTrustedIps as TIp[]
|
trustedIps: identityUa.clientSecretTrustedIps as TIp[]
|
||||||
});
|
});
|
||||||
|
const clientSecretPrefix = clientSecret.slice(0, 4);
|
||||||
const clientSecrtInfo = await identityUaClientSecretDAL.find({
|
const clientSecrtInfo = await identityUaClientSecretDAL.find({
|
||||||
identityUAId: identityUa.id,
|
identityUAId: identityUa.id,
|
||||||
isClientSecretRevoked: false
|
isClientSecretRevoked: false,
|
||||||
|
clientSecretPrefix
|
||||||
});
|
});
|
||||||
|
|
||||||
let validClientSecretInfo: (typeof clientSecrtInfo)[0] | null = null;
|
let validClientSecretInfo: (typeof clientSecrtInfo)[0] | null = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user