Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: changed accessTokenMaxTTL in expireAt to accessTokenTTL

=811dc8dd7566
diff --git a/backend/src/services/identity-aws-auth/identity-aws-auth-service.ts b/backend/src/services/identity-aws-auth/identity-aws-auth-service.ts
index 7a80938b05..ff202f225d 100644
--- a/backend/src/services/identity-aws-auth/identity-aws-auth-service.ts
+++ b/backend/src/services/identity-aws-auth/identity-aws-auth-service.ts
@@ -127,10 +127,10 @@ export const identityAwsAuthServiceFactory = ({
} as TIdentityAccessTokenJwtPayload,
appCfg.AUTH_SECRET,
// akhilmhdh: for non-expiry tokens you should not even set the value, including undefined. Even for undefined jsonwebtoken throws error
- Number(identityAccessToken.accessTokenMaxTTL) === 0
+ Number(identityAccessToken.accessTokenTTL) === 0
? undefined
: {
- expiresIn: Number(identityAccessToken.accessTokenMaxTTL)
+ expiresIn: Number(identityAccessToken.accessTokenTTL)
}
);
diff --git a/backend/src/services/identity-azure-auth/identity-azure-auth-service.ts b/backend/src/services/identity-azure-auth/identity-azure-auth-service.ts
index 5dca4509dd..01d013734e 100644
--- a/backend/src/services/identity-azure-auth/identity-azure-auth-service.ts
+++ b/backend/src/services/identity-azure-auth/identity-azure-auth-service.ts
@@ -100,10 +100,10 @@ export const identityAzureAuthServiceFactory = ({
} as TIdentityAccessTokenJwtPayload,
appCfg.AUTH_SECRET,
// akhilmhdh: for non-expiry tokens you should not even set the value, including undefined. Even for undefined jsonwebtoken throws error
- Number(identityAccessToken.accessTokenMaxTTL) === 0
+ Number(identityAccessToken.accessTokenTTL) === 0
? undefined
: {
- expiresIn: Number(identityAccessToken.accessTokenMaxTTL)
+ expiresIn: Number(identityAccessToken.accessTokenTTL)
}
);
diff --git a/backend/src/services/identity-gcp-auth/identity-gcp-auth-service.ts b/backend/src/services/identity-gcp-auth/identity-gcp-auth-service.ts
index 277cf73e8a..5e404ca20e 100644
--- a/backend/src/services/identity-gcp-auth/identity-gcp-auth-service.ts
+++ b/backend/src/services/identity-gcp-auth/identity-gcp-auth-service.ts
@@ -139,10 +139,10 @@ export const identityGcpAuthServiceFactory = ({
} as TIdentityAccessTokenJwtPayload,
appCfg.AUTH_SECRET,
// akhilmhdh: for non-expiry tokens you should not even set the value, including undefined. Even for undefined jsonwebtoken throws error
- Number(identityAccessToken.accessTokenMaxTTL) === 0
+ Number(identityAccessToken.accessTokenTTL) === 0
? undefined
: {
- expiresIn: Number(identityAccessToken.accessTokenMaxTTL)
+ expiresIn: Number(identityAccessToken.accessTokenTTL)
}
);
diff --git a/backend/src/services/identity-jwt-auth/identity-jwt-auth-service.ts b/backend/src/services/identity-jwt-auth/identity-jwt-auth-service.ts
index a48ce4664c..6757b0b846 100644
--- a/backend/src/services/identity-jwt-auth/identity-jwt-auth-service.ts
+++ b/backend/src/services/identity-jwt-auth/identity-jwt-auth-service.ts
@@ -213,10 +213,10 @@ export const identityJwtAuthServiceFactory = ({
} as TIdentityAccessTokenJwtPayload,
appCfg.AUTH_SECRET,
// akhilmhdh: for non-expiry tokens you should not even set the value, including undefined. Even for undefined jsonwebtoken throws error
- Number(identityAccessToken.accessTokenMaxTTL) === 0
+ Number(identityAccessToken.accessTokenTTL) === 0
? undefined
: {
- expiresIn: Number(identityAccessToken.accessTokenMaxTTL)
+ expiresIn: Number(identityAccessToken.accessTokenTTL)
}
);
diff --git a/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.ts b/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.ts
index 9d3a2a72a0..4508a255da 100644
--- a/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.ts
+++ b/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.ts
@@ -230,10 +230,10 @@ export const identityKubernetesAuthServiceFactory = ({
} as TIdentityAccessTokenJwtPayload,
appCfg.AUTH_SECRET,
// akhilmhdh: for non-expiry tokens you should not even set the value, including undefined. Even for undefined jsonwebtoken throws error
- Number(identityAccessToken.accessTokenMaxTTL) === 0
+ Number(identityAccessToken.accessTokenTTL) === 0
? undefined
: {
- expiresIn: Number(identityAccessToken.accessTokenMaxTTL)
+ expiresIn: Number(identityAccessToken.accessTokenTTL)
}
);
diff --git a/backend/src/services/identity-oidc-auth/identity-oidc-auth-service.ts b/backend/src/services/identity-oidc-auth/identity-oidc-auth-service.ts
index a0c1a7d92c..a1dbed46b3 100644
--- a/backend/src/services/identity-oidc-auth/identity-oidc-auth-service.ts
+++ b/backend/src/services/identity-oidc-auth/identity-oidc-auth-service.ts
@@ -195,10 +195,10 @@ export const identityOidcAuthServiceFactory = ({
} as TIdentityAccessTokenJwtPayload,
appCfg.AUTH_SECRET,
// akhilmhdh: for non-expiry tokens you should not even set the value, including undefined. Even for undefined jsonwebtoken throws error
- Number(identityAccessToken.accessTokenMaxTTL) === 0
+ Number(identityAccessToken.accessTokenTTL) === 0
? undefined
: {
- expiresIn: Number(identityAccessToken.accessTokenMaxTTL)
+ expiresIn: Number(identityAccessToken.accessTokenTTL)
}
);
diff --git a/backend/src/services/identity-token-auth/identity-token-auth-service.ts b/backend/src/services/identity-token-auth/identity-token-auth-service.ts
index aeb1faf127..bf38c5fa1e 100644
--- a/backend/src/services/identity-token-auth/identity-token-auth-service.ts
+++ b/backend/src/services/identity-token-auth/identity-token-auth-service.ts
@@ -329,10 +329,10 @@ export const identityTokenAuthServiceFactory = ({
} as TIdentityAccessTokenJwtPayload,
appCfg.AUTH_SECRET,
// akhilmhdh: for non-expiry tokens you should not even set the value, including undefined. Even for undefined jsonwebtoken throws error
- Number(identityAccessToken.accessTokenMaxTTL) === 0
+ Number(identityAccessToken.accessTokenTTL) === 0
? undefined
: {
- expiresIn: Number(identityAccessToken.accessTokenMaxTTL)
+ expiresIn: Number(identityAccessToken.accessTokenTTL)
}
);
diff --git a/backend/src/services/identity-ua/identity-ua-service.ts b/backend/src/services/identity-ua/identity-ua-service.ts
index b244656b60..b9837265aa 100644
--- a/backend/src/services/identity-ua/identity-ua-service.ts
+++ b/backend/src/services/identity-ua/identity-ua-service.ts
@@ -130,10 +130,10 @@ export const identityUaServiceFactory = ({
} as TIdentityAccessTokenJwtPayload,
appCfg.AUTH_SECRET,
// akhilmhdh: for non-expiry tokens you should not even set the value, including undefined. Even for undefined jsonwebtoken throws error
- Number(identityAccessToken.accessTokenMaxTTL) === 0
+ Number(identityAccessToken.accessTokenTTL) === 0
? undefined
: {
- expiresIn: Number(identityAccessToken.accessTokenMaxTTL)
+ expiresIn: Number(identityAccessToken.accessTokenTTL)
}
);