File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/Authentication/Authentication.Core/Utilities Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ namespace Microsoft.Graph.PowerShell.Authentication.Helpers
2323 /// </summary>
2424 public static class AuthenticationHelpers
2525 {
26- static ReaderWriterLockSlim _cacheLock = new ReaderWriterLockSlim ( LockRecursionPolicy . SupportsRecursion ) ;
26+ static readonly ReaderWriterLockSlim _cacheLock = new ReaderWriterLockSlim ( LockRecursionPolicy . SupportsRecursion ) ;
2727
2828 /// <summary>
2929 /// Signs out of the current session using the provided <see cref="IAuthContext"/>.
@@ -71,7 +71,6 @@ public static IAuthenticationProvider GetAuthProvider(IAuthContext authContext)
7171 //https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/MSAL.NET-uses-web-browser
7272 IPublicClientApplication publicClientApp = PublicClientApplicationBuilder
7373 . Create ( authContext . ClientId )
74- . WithTenantId ( authContext . TenantId )
7574 . WithAuthority ( authorityUrl )
7675 . WithClientCapabilities ( new [ ] { "cp1" } )
7776 . WithDefaultRedirectUri ( )
@@ -98,7 +97,6 @@ public static IAuthenticationProvider GetAuthProvider(IAuthContext authContext)
9897 {
9998 IConfidentialClientApplication confidentialClientApp = ConfidentialClientApplicationBuilder
10099 . Create ( authContext . ClientId )
101- . WithTenantId ( authContext . TenantId )
102100 . WithAuthority ( authorityUrl )
103101 . WithCertificate ( GetCertificate ( authContext ) )
104102 . Build ( ) ;
You can’t perform that action at this time.
0 commit comments