Address PR comments for Azure Client Secret Rotation

This commit is contained in:
carlosmonastyrski
2025-04-30 10:11:38 -03:00
parent 2a28d74bde
commit 98bb5d7aa7
5 changed files with 17 additions and 9 deletions

View File

@@ -46,7 +46,8 @@ export const azureClientSecretRotationFactory: TRotationFactory<
endpoint,
{
passwordCredential: {
displayName: `Infisical Rotated Secret (${formattedDate})`
displayName: `Infisical Rotated Secret (${formattedDate})`,
endDateTime: "2299-12-31T23:59:59Z" // effectively no expiration
}
},
{

View File

@@ -127,7 +127,7 @@ export const validateAzureClientSecretsConnectionCredentials = async (config: TA
scope: `openid offline_access https://graph.microsoft.com/.default`,
client_id: INF_APP_CONNECTION_AZURE_CLIENT_ID,
client_secret: INF_APP_CONNECTION_AZURE_CLIENT_SECRET,
redirect_uri: `${SITE_URL}/organization/app-connections/azure-client-secrets/oauth/callback`
redirect_uri: `${SITE_URL}/organization/app-connections/azure/oauth/callback`
})
);
} catch (e: unknown) {