File tree 1 file changed +1
-3
lines changed
src/Authentication/Authentication.Core/Utilities
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
23
23
/// </summary>
24
24
public static class AuthenticationHelpers
25
25
{
26
- static ReaderWriterLockSlim _cacheLock = new ReaderWriterLockSlim ( LockRecursionPolicy . SupportsRecursion ) ;
26
+ static readonly ReaderWriterLockSlim _cacheLock = new ReaderWriterLockSlim ( LockRecursionPolicy . SupportsRecursion ) ;
27
27
28
28
/// <summary>
29
29
/// Signs out of the current session using the provided <see cref="IAuthContext"/>.
@@ -71,7 +71,6 @@ public static IAuthenticationProvider GetAuthProvider(IAuthContext authContext)
71
71
//https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/MSAL.NET-uses-web-browser
72
72
IPublicClientApplication publicClientApp = PublicClientApplicationBuilder
73
73
. Create ( authContext . ClientId )
74
- . WithTenantId ( authContext . TenantId )
75
74
. WithAuthority ( authorityUrl )
76
75
. WithClientCapabilities ( new [ ] { "cp1" } )
77
76
. WithDefaultRedirectUri ( )
@@ -98,7 +97,6 @@ public static IAuthenticationProvider GetAuthProvider(IAuthContext authContext)
98
97
{
99
98
IConfidentialClientApplication confidentialClientApp = ConfidentialClientApplicationBuilder
100
99
. Create ( authContext . ClientId )
101
- . WithTenantId ( authContext . TenantId )
102
100
. WithAuthority ( authorityUrl )
103
101
. WithCertificate ( GetCertificate ( authContext ) )
104
102
. Build ( ) ;
You can’t perform that action at this time.
0 commit comments