File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
tests/Microsoft.Identity.Test.E2e Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,6 @@ namespace Microsoft.Identity.Test.E2E
13
13
[ TestClass ]
14
14
public class KeyGuardAttestationTests
15
15
{
16
- // Create a KeyGuard-protected RSA key, using the same provider + flags we use elsewhere.
17
- // Provider name + flags mirror the KeyGuard helper in #5448:
18
- // - Provider: "Microsoft Software Key Storage Provider"
19
- // - Flags: Virtual Isolation (0x00020000) + Per-Boot Key (0x00040000)
20
- // See PR #5448 KeyGuardHelper.cs. :contentReference[oaicite:0]{index=0}
21
16
private static CngKey CreateKeyGuardKey ( string keyName )
22
17
{
23
18
const string ProviderName = "Microsoft Software Key Storage Provider" ;
@@ -77,10 +72,10 @@ public void Attest_KeyGuardKey_OnAzureArc_Succeeds()
77
72
Assert . Inconclusive ( $ "Set { "TOKEN_ATTESTATION_ENDPOINT" } on the Azure Arc agent to run this test.") ;
78
73
}
79
74
80
- // UAMI client id (optional). For SAMI it's typically unset.
81
- var clientId = Environment . GetEnvironmentVariable ( "MSI_CLIENT_ID" ) ?? string . Empty ;
75
+ var clientId = "MSI_CLIENT_ID" ;
76
+
77
+ string keyName = "MsalE2E_Keyguard" ;
82
78
83
- string keyName = "MsalE2E_Keyguard_" + Guid . NewGuid ( ) . ToString ( "N" ) ;
84
79
CngKey key = null ;
85
80
try
86
81
{
You can’t perform that action at this time.
0 commit comments