File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 44
55using System ;
66using System . Collections . Generic ;
7- using System . Linq ;
87using System . Net . Http ;
98using System . Net . Http . Headers ;
109using System . Threading ;
@@ -34,7 +33,7 @@ public class WindowsProvider : BaseProvider
3433 private const string SettingsKeyProviderId = "WindowsProvider_ProviderId" ;
3534 private const string SettingsKeyProviderAuthority = "WindowsProvider_Authority" ;
3635
37- private static readonly SemaphoreSlim SemaphoreSlim = new ( 1 ) ;
36+ private static readonly SemaphoreSlim SemaphoreSlim = new ( 1 ) ;
3837
3938 // Default/minimal scopes for authentication, if none are provided.
4039 private static readonly string [ ] DefaultScopes = { "User.Read" } ;
@@ -503,7 +502,6 @@ async void OnAccountCommandsRequested(AccountsSettingsPane sender, AccountsSetti
503502 }
504503 }
505504 }
506- catch ( Exception ex )
507505 {
508506 webAccountProviderTaskCompletionSource . SetException ( ex ) ;
509507 }
@@ -573,6 +571,11 @@ private async Task<List<WebAccountProvider>> GetWebAccountProvidersAsync()
573571 await FindAndAddProviderAsync ( MicrosoftProviderId , AadAuthority ) ;
574572 }
575573
574+ if ( _webAccountProviderConfig . WebAccountProviderType == WebAccountProviderType . Local )
575+ {
576+ await FindAndAddProviderAsync ( LocalProviderId ) ;
577+ }
578+
576579 return providers ;
577580
578581 async Task FindAndAddProviderAsync (
You can’t perform that action at this time.
0 commit comments