Skip to content

update test certs #3424

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions benchmark/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"ClientId": "f6b698c0-140c-448f-8155-4aa9bf77ceba",
"ClientCredentials": [
{
"SourceType": "KeyVault",
"KeyVaultUrl": "https://webappsapistests.vault.azure.net",
"KeyVaultCertificateName": "Self-Signed-5-5-22"
"SourceType": "StoreWithDistinguishedName",
"CertificateStorePath": "LocalMachine/My",
"CertificateDistinguishedName": "CN=LabAuth.MSIDLab.com"
}
]
}
Expand Down
6 changes: 3 additions & 3 deletions tests/DevApps/ContosoWorker/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"ClientId": "f6b698c0-140c-448f-8155-4aa9bf77ceba",
"ClientCredentials": [
{
"SourceType": "KeyVault",
"KeyVaultUrl": "https://webappsapistests.vault.azure.net",
"KeyVaultCertificateName": "Self-Signed-5-5-22"
"SourceType": "StoreWithDistinguishedName",
"CertificateStorePath": "LocalMachine/My",
"CertificateDistinguishedName": "CN=LabAuth.MSIDLab.com"
}
]
},
Expand Down
6 changes: 3 additions & 3 deletions tests/DevApps/WebAppCallsMicrosoftGraph/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
// "ManagedIdentityClientId": ""
//},
{
"SourceType": "KeyVault",
"KeyVaultUrl": "https://webappsapistests.vault.azure.net",
"KeyVaultCertificateName": "Self-Signed-5-5-22"
"SourceType": "StoreWithDistinguishedName",
"CertificateStorePath": "LocalMachine/My",
"CertificateDistinguishedName": "CN=LabAuth.MSIDLab.com"
}
//{
// "SourceType": "ClientSecret",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
// To call an API
"ClientCertificates": [
{
"SourceType": "KeyVault",
"KeyVaultUrl": "https://webappsapistests.vault.azure.net",
"KeyVaultCertificateName": "Self-Signed-5-5-22"
"SourceType": "StoreWithDistinguishedName",
"CertificateStorePath": "LocalMachine/My",
"CertificateDistinguishedName": "CN=LabAuth.MSIDLab.com"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
//"ClientSecret": null,
"ClientCertificates": [
{
"SourceType": "KeyVault",
"KeyVaultUrl": "https://webappsapistests.vault.azure.net",
"KeyVaultCertificateName": "Self-Signed-5-5-22"
"SourceType": "StoreWithDistinguishedName",
"CertificateStorePath": "LocalMachine/My",
"CertificateDistinguishedName": "CN=LabAuth.MSIDLab.com"
}
],
"Scopes": "access_as_user",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"ClientId": "556d438d-2f4b-4add-9713-ede4e5f5d7da",
"ClientCertificates": [
{
"SourceType": "KeyVault",
"KeyVaultUrl": "https://webappsapistests.vault.azure.net",
"KeyVaultCertificateName": "Self-Signed-5-5-22"
"SourceType": "StoreWithDistinguishedName",
"CertificateStorePath": "LocalMachine/My",
"CertificateDistinguishedName": "CN=LabAuth.MSIDLab.com"
}
]
},
Expand Down
6 changes: 3 additions & 3 deletions tests/DevApps/aspnet-mvc/OwinWebApi/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"EnableCacheSynchronization": false,
"ClientCredentials": [
{
"SourceType": "KeyVault",
"KeyVaultUrl": "https://webappsapistests.vault.azure.net",
"KeyVaultCertificateName": "Self-Signed-5-5-22"
"SourceType": "StoreWithDistinguishedName",
"CertificateStorePath": "LocalMachine/My",
"CertificateDistinguishedName": "CN=LabAuth.MSIDLab.com"
}
],
"TokenDecryptionCertificates": [
Expand Down
6 changes: 3 additions & 3 deletions tests/DevApps/aspnet-mvc/OwinWebApp/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"EnableCacheSynchronization": false,
"ClientCredentials": [
{
"SourceType": "KeyVault",
"KeyVaultUrl": "https://webappsapistests.vault.azure.net",
"KeyVaultCertificateName": "Self-Signed-5-5-22"
"SourceType": "StoreWithDistinguishedName",
"CertificateStorePath": "LocalMachine/My",
"CertificateDistinguishedName": "CN=LabAuth.MSIDLab.com"
}
]
},
Expand Down
6 changes: 3 additions & 3 deletions tests/DevApps/blazor/BlazorApp/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
// To call an API
"ClientCredentials": [
{
"SourceType": "KeyVault",
"KeyVaultUrl": "https://webappsapistests.vault.azure.net",
"KeyVaultCertificateName": "Self-Signed-5-5-22"
"SourceType": "StoreWithDistinguishedName",
"CertificateStorePath": "LocalMachine/My",
"CertificateDistinguishedName": "CN=LabAuth.MSIDLab.com"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"ClientId": "9a192b78-6580-4f8a-aace-f36ffea4f7be",
"ClientCertificates": [
{
"SourceType": "KeyVault",
"KeyVaultUrl": "https://webappsapistests.vault.azure.net",
"KeyVaultCertificateName": "Self-Signed-5-5-22"
"SourceType": "StoreWithDistinguishedName",
"CertificateStorePath": "LocalMachine/My",
"CertificateDistinguishedName": "CN=LabAuth.MSIDLab.com"
}
],
"CallbackPath": "/signin-oidc"
Expand Down
6 changes: 3 additions & 3 deletions tests/DevApps/ciam/myWebApp/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
// "ManagedIdentityClientId": ""
//},
{
"SourceType": "KeyVault",
"KeyVaultUrl": "https://webappsapistests.vault.azure.net",
"KeyVaultCertificateName": "Self-Signed-5-5-22"
"SourceType": "StoreWithDistinguishedName",
"CertificateStorePath": "LocalMachine/My",
"CertificateDistinguishedName": "CN=LabAuth.MSIDLab.com"
}
//{
// "SourceType": "ClientSecret",
Expand Down
12 changes: 6 additions & 6 deletions tests/DevApps/daemon-app/Daemon-app/Program - SDK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ static async Task Main(string[] args)
{
new CredentialDescription()
{
SourceType = CredentialSource.KeyVault,
KeyVaultUrl = "https://webappsapistests.vault.azure.net",
KeyVaultCertificateName = "Self-Signed-5-5-22",
SourceType = CredentialSource.StoreWithDistinguishedName,
CertificateStorePath = "LocalMachine/My",
CertificateDistinguishedName = "CN=LabAuth.MSIDLab.com"
}
}
});
Expand All @@ -48,9 +48,9 @@ static async Task Main(string[] args)
{
new CredentialDescription()
{
SourceType = CredentialSource.KeyVault,
KeyVaultUrl = "https://webappsapistests.vault.azure.net",
KeyVaultCertificateName = "Self-Signed-5-5-22",
SourceType = CredentialSource.StoreWithDistinguishedName,
CertificateStorePath = "LocalMachine/My",
CertificateDistinguishedName = "CN=LabAuth.MSIDLab.com"
}
}
);
Expand Down
6 changes: 3 additions & 3 deletions tests/DevApps/daemon-app/Daemon-app/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"ClientId": "f6b698c0-140c-448f-8155-4aa9bf77ceba",
"ClientCredentials": [
{
"SourceType": "KeyVault",
"KeyVaultUrl": "https://webappsapistests.vault.azure.net",
"KeyVaultCertificateName": "Self-Signed-5-5-22"
"SourceType": "StoreWithDistinguishedName",
"CertificateStorePath": "LocalMachine/My",
"CertificateDistinguishedName": "CN=LabAuth.MSIDLab.com"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"ClientId": "f6b698c0-140c-448f-8155-4aa9bf77ceba",
"ClientCredentials": [
{
"SourceType": "KeyVault",
"KeyVaultUrl": "https://webappsapistests.vault.azure.net",
"KeyVaultCertificateName": "Self-Signed-5-5-22"
"SourceType": "StoreWithDistinguishedName",
"CertificateStorePath": "LocalMachine/My",
"CertificateDistinguishedName": "CN=LabAuth.MSIDLab.com"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"ClientId": "f6b698c0-140c-448f-8155-4aa9bf77ceba",
"ClientCredentials": [
{
"SourceType": "KeyVault",
"KeyVaultUrl": "https://webappsapistests.vault.azure.net",
"KeyVaultCertificateName": "Self-Signed-5-5-22"
"SourceType": "StoreWithDistinguishedName",
"CertificateStorePath": "LocalMachine/My",
"CertificateDistinguishedName": "CN=LabAuth.MSIDLab.com"
}
]
}
Expand Down
9 changes: 6 additions & 3 deletions tests/E2E Tests/TokenAcquirerTests/TokenAcquirer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ public class TokenAcquirer
private static readonly string s_optionName = string.Empty;
private static readonly CredentialDescription[] s_clientCredentials = new[]
{
CertificateDescription.FromKeyVault(
"https://webappsapistests.vault.azure.net",
"Self-Signed-5-5-22")
new CredentialDescription
{
SourceType = CredentialSource.StoreWithDistinguishedName,
CertificateStorePath = "LocalMachine/My",
CertificateDistinguishedName = "CN=LabAuth.MSIDLab.com"
}
};

private static readonly CredentialDescription[] s_ciamClientCredentials = new[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public async Task FicFails_CertificateFallbackAsync()

new CredentialDescription
{
SourceType = CredentialSource.KeyVault,
KeyVaultUrl = "https://bogus.net",
KeyVaultCertificateName = "Self-Signed-5-5-22"
SourceType = CredentialSource.StoreWithDistinguishedName,
CertificateStorePath = "LocalMachine/My",
CertificateDistinguishedName = "CN=LabAuth.MSIDLab.com"
}
};

Expand Down Expand Up @@ -91,9 +91,9 @@ public async Task FailsForCerts_ReturnsMeaningfulMessageAsync()

var certCredential1 = new CredentialDescription
{
SourceType = CredentialSource.KeyVault,
KeyVaultUrl = "https://bogus.net",
KeyVaultCertificateName = "Self-Signed-5-5-22"
SourceType = CredentialSource.StoreWithDistinguishedName,
CertificateStorePath = "LocalMachine/My",
CertificateDistinguishedName = "CN=LabAuth.MSIDLab.com"
};
var certCredential2 = new CredentialDescription
{
Expand All @@ -117,9 +117,9 @@ public async Task FailsForFicAndCert_ReturnsMeaningfulMessageAsync()

var certCredential = new CredentialDescription
{
SourceType = CredentialSource.KeyVault,
KeyVaultUrl = "https://bogus.net",
KeyVaultCertificateName = "Self-Signed-5-5-22"
SourceType = CredentialSource.StoreWithDistinguishedName,
CertificateStorePath = "LocalMachine/My",
CertificateDistinguishedName = "CN=LabAuth.MSIDLab.com"
};

await RunFailToLoadLogicAsync(new[] { ficCredential, certCredential });
Expand All @@ -130,9 +130,9 @@ public async Task FailsForCertAndFic_ReturnsMeaningfulMessageAsync()
{
var certCredential = new CredentialDescription
{
SourceType = CredentialSource.KeyVault,
KeyVaultUrl = "https://bogus.net",
KeyVaultCertificateName = "Self-Signed-5-5-22"
SourceType = CredentialSource.StoreWithDistinguishedName,
CertificateStorePath = "LocalMachine/My",
CertificateDistinguishedName = "CN=LabAuth.MSIDLab.com"
};

var ficCredential = new CredentialDescription
Expand All @@ -149,9 +149,9 @@ public async Task FailsForPodAndCert_ReturnsMeaningfulMessageAsync()
{
var certCredential = new CredentialDescription
{
SourceType = CredentialSource.KeyVault,
KeyVaultUrl = "https://bogus.net",
KeyVaultCertificateName = "Self-Signed-5-5-22"
SourceType = CredentialSource.StoreWithDistinguishedName,
CertificateStorePath = "LocalMachine/My",
CertificateDistinguishedName = "CN=LabAuth.MSIDLab.com"
};

var ficCredential = new CredentialDescription
Expand Down
Loading