mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 20:27:43 +00:00
fix: changed accessTokenMaxTTL in expireAt to accessTokenTTL
This commit is contained in:
@@ -127,10 +127,10 @@ export const identityAwsAuthServiceFactory = ({
|
|||||||
} as TIdentityAccessTokenJwtPayload,
|
} as TIdentityAccessTokenJwtPayload,
|
||||||
appCfg.AUTH_SECRET,
|
appCfg.AUTH_SECRET,
|
||||||
// akhilmhdh: for non-expiry tokens you should not even set the value, including undefined. Even for undefined jsonwebtoken throws error
|
// 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
|
? undefined
|
||||||
: {
|
: {
|
||||||
expiresIn: Number(identityAccessToken.accessTokenMaxTTL)
|
expiresIn: Number(identityAccessToken.accessTokenTTL)
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -100,10 +100,10 @@ export const identityAzureAuthServiceFactory = ({
|
|||||||
} as TIdentityAccessTokenJwtPayload,
|
} as TIdentityAccessTokenJwtPayload,
|
||||||
appCfg.AUTH_SECRET,
|
appCfg.AUTH_SECRET,
|
||||||
// akhilmhdh: for non-expiry tokens you should not even set the value, including undefined. Even for undefined jsonwebtoken throws error
|
// 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
|
? undefined
|
||||||
: {
|
: {
|
||||||
expiresIn: Number(identityAccessToken.accessTokenMaxTTL)
|
expiresIn: Number(identityAccessToken.accessTokenTTL)
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -139,10 +139,10 @@ export const identityGcpAuthServiceFactory = ({
|
|||||||
} as TIdentityAccessTokenJwtPayload,
|
} as TIdentityAccessTokenJwtPayload,
|
||||||
appCfg.AUTH_SECRET,
|
appCfg.AUTH_SECRET,
|
||||||
// akhilmhdh: for non-expiry tokens you should not even set the value, including undefined. Even for undefined jsonwebtoken throws error
|
// 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
|
? undefined
|
||||||
: {
|
: {
|
||||||
expiresIn: Number(identityAccessToken.accessTokenMaxTTL)
|
expiresIn: Number(identityAccessToken.accessTokenTTL)
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -213,10 +213,10 @@ export const identityJwtAuthServiceFactory = ({
|
|||||||
} as TIdentityAccessTokenJwtPayload,
|
} as TIdentityAccessTokenJwtPayload,
|
||||||
appCfg.AUTH_SECRET,
|
appCfg.AUTH_SECRET,
|
||||||
// akhilmhdh: for non-expiry tokens you should not even set the value, including undefined. Even for undefined jsonwebtoken throws error
|
// 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
|
? undefined
|
||||||
: {
|
: {
|
||||||
expiresIn: Number(identityAccessToken.accessTokenMaxTTL)
|
expiresIn: Number(identityAccessToken.accessTokenTTL)
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -230,10 +230,10 @@ export const identityKubernetesAuthServiceFactory = ({
|
|||||||
} as TIdentityAccessTokenJwtPayload,
|
} as TIdentityAccessTokenJwtPayload,
|
||||||
appCfg.AUTH_SECRET,
|
appCfg.AUTH_SECRET,
|
||||||
// akhilmhdh: for non-expiry tokens you should not even set the value, including undefined. Even for undefined jsonwebtoken throws error
|
// 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
|
? undefined
|
||||||
: {
|
: {
|
||||||
expiresIn: Number(identityAccessToken.accessTokenMaxTTL)
|
expiresIn: Number(identityAccessToken.accessTokenTTL)
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -195,10 +195,10 @@ export const identityOidcAuthServiceFactory = ({
|
|||||||
} as TIdentityAccessTokenJwtPayload,
|
} as TIdentityAccessTokenJwtPayload,
|
||||||
appCfg.AUTH_SECRET,
|
appCfg.AUTH_SECRET,
|
||||||
// akhilmhdh: for non-expiry tokens you should not even set the value, including undefined. Even for undefined jsonwebtoken throws error
|
// 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
|
? undefined
|
||||||
: {
|
: {
|
||||||
expiresIn: Number(identityAccessToken.accessTokenMaxTTL)
|
expiresIn: Number(identityAccessToken.accessTokenTTL)
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -329,10 +329,10 @@ export const identityTokenAuthServiceFactory = ({
|
|||||||
} as TIdentityAccessTokenJwtPayload,
|
} as TIdentityAccessTokenJwtPayload,
|
||||||
appCfg.AUTH_SECRET,
|
appCfg.AUTH_SECRET,
|
||||||
// akhilmhdh: for non-expiry tokens you should not even set the value, including undefined. Even for undefined jsonwebtoken throws error
|
// 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
|
? undefined
|
||||||
: {
|
: {
|
||||||
expiresIn: Number(identityAccessToken.accessTokenMaxTTL)
|
expiresIn: Number(identityAccessToken.accessTokenTTL)
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -130,10 +130,10 @@ export const identityUaServiceFactory = ({
|
|||||||
} as TIdentityAccessTokenJwtPayload,
|
} as TIdentityAccessTokenJwtPayload,
|
||||||
appCfg.AUTH_SECRET,
|
appCfg.AUTH_SECRET,
|
||||||
// akhilmhdh: for non-expiry tokens you should not even set the value, including undefined. Even for undefined jsonwebtoken throws error
|
// 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
|
? undefined
|
||||||
: {
|
: {
|
||||||
expiresIn: Number(identityAccessToken.accessTokenMaxTTL)
|
expiresIn: Number(identityAccessToken.accessTokenTTL)
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user