diff --git a/src/client/Microsoft.Identity.Client.Broker/RuntimeBroker.cs b/src/client/Microsoft.Identity.Client.Broker/RuntimeBroker.cs index 1655e06f12..a310d879ea 100644 --- a/src/client/Microsoft.Identity.Client.Broker/RuntimeBroker.cs +++ b/src/client/Microsoft.Identity.Client.Broker/RuntimeBroker.cs @@ -120,7 +120,6 @@ public async Task AcquireTokenInteractiveAsync( AuthenticationRequestParameters authenticationRequestParameters, AcquireTokenInteractiveParameters acquireTokenInteractiveParameters) { - using LogEventWrapper logEventWrapper = new LogEventWrapper(this); Debug.Assert(s_lazyCore.Value != null, "Should not call this API if msal runtime init failed"); MsalTokenResponse msalTokenResponse = null; @@ -197,7 +196,6 @@ public async Task SignInInteractivelyAsync( AuthenticationRequestParameters authenticationRequestParameters, AcquireTokenInteractiveParameters acquireTokenInteractiveParameters) { - using LogEventWrapper logEventWrapper = new LogEventWrapper(this); MsalTokenResponse msalTokenResponse = null; var cancellationToken = authenticationRequestParameters.RequestContext.UserCancellationToken; Debug.Assert(s_lazyCore.Value != null, "Should not call this API if msal runtime init failed"); @@ -230,7 +228,6 @@ public async Task AcquireTokenInteractiveDefaultUserAsync( AuthenticationRequestParameters authenticationRequestParameters, AcquireTokenInteractiveParameters acquireTokenInteractiveParameters) { - using LogEventWrapper logEventWrapper = new LogEventWrapper(this); Debug.Assert(s_lazyCore.Value != null, "Should not call this API if msal runtime init failed"); MsalTokenResponse msalTokenResponse = null; @@ -271,7 +268,6 @@ public async Task AcquireTokenSilentAsync( AuthenticationRequestParameters authenticationRequestParameters, AcquireTokenSilentParameters acquireTokenSilentParameters) { - using LogEventWrapper logEventWrapper = new LogEventWrapper(this); Debug.Assert(s_lazyCore.Value != null, "Should not call this API if msal runtime init failed"); var cancellationToken = authenticationRequestParameters.RequestContext.UserCancellationToken; @@ -319,7 +315,6 @@ public async Task AcquireTokenSilentDefaultUserAsync( AuthenticationRequestParameters authenticationRequestParameters, AcquireTokenSilentParameters acquireTokenSilentParameters) { - using LogEventWrapper logEventWrapper = new LogEventWrapper(this); Debug.Assert(s_lazyCore.Value != null, "Should not call this API if msal runtime init failed"); var cancellationToken = authenticationRequestParameters.RequestContext.UserCancellationToken; @@ -349,7 +344,6 @@ public async Task AcquireTokenByUsernamePasswordAsync( AuthenticationRequestParameters authenticationRequestParameters, AcquireTokenByUsernamePasswordParameters acquireTokenByUsernamePasswordParameters) { - using LogEventWrapper logEventWrapper = new LogEventWrapper(this); Debug.Assert(s_lazyCore.Value != null, "Should not call this API if msal runtime init failed"); var cancellationToken = authenticationRequestParameters.RequestContext.UserCancellationToken; @@ -386,7 +380,6 @@ public async Task AcquireTokenByUsernamePasswordAsync( public async Task RemoveAccountAsync(ApplicationConfiguration appConfig, IAccount account) { - using LogEventWrapper logEventWrapper = new LogEventWrapper(this); Debug.Assert(s_lazyCore.Value != null, "Should not call this API if msal runtime init failed"); if (account == null) diff --git a/tests/Microsoft.Identity.Test.Integration.netfx/HeadlessTests/PoPTests.cs b/tests/Microsoft.Identity.Test.Integration.netfx/HeadlessTests/PoPTests.cs index 5860121c71..64d70c9ca7 100644 --- a/tests/Microsoft.Identity.Test.Integration.netfx/HeadlessTests/PoPTests.cs +++ b/tests/Microsoft.Identity.Test.Integration.netfx/HeadlessTests/PoPTests.cs @@ -480,7 +480,8 @@ public async Task WamUsernamePasswordRequestWithPOPAsync() MsalAssert.AssertAuthResult(result, TokenSource.Broker, labResponse.Lab.TenantId, expectedScopes, true); - Assert.IsTrue(wastestLogger.HasLogged); + //Disabling MSALRuntime Logger check + //Assert.IsTrue(wastestLogger.HasLogged); await VerifyPoPTokenAsync( labResponse.App.AppId, diff --git a/tests/Microsoft.Identity.Test.Integration.netfx/HeadlessTests/RuntimeBrokerTests.cs b/tests/Microsoft.Identity.Test.Integration.netfx/HeadlessTests/RuntimeBrokerTests.cs index efb0cb9647..d375dd1c1e 100644 --- a/tests/Microsoft.Identity.Test.Integration.netfx/HeadlessTests/RuntimeBrokerTests.cs +++ b/tests/Microsoft.Identity.Test.Integration.netfx/HeadlessTests/RuntimeBrokerTests.cs @@ -118,7 +118,8 @@ public async Task WamUsernamePasswordRequestAsync() var account = accounts.FirstOrDefault(); Assert.IsNotNull(account); - Assert.IsTrue(testLogger.HasLogged); + //Disable MSALRuntime logger + //Assert.IsTrue(testLogger.HasLogged); // Acquire token silently result = await pca.AcquireTokenSilent(scopes, account).ExecuteAsync().ConfigureAwait(false);