Skip to content

Commit 9803019

Browse files
Richasymichael-hawker
authored andcommitted
Remove local provider
1 parent d50a495 commit 9803019

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

CommunityToolkit.Authentication.Uwp/WindowsProvider.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
using System;
66
using System.Collections.Generic;
7+
using System.Linq;
78
using System.Net.Http;
89
using System.Net.Http.Headers;
910
using System.Threading;
@@ -33,7 +34,7 @@ public class WindowsProvider : BaseProvider
3334
private const string SettingsKeyProviderId = "WindowsProvider_ProviderId";
3435
private const string SettingsKeyProviderAuthority = "WindowsProvider_Authority";
3536

36-
private static readonly SemaphoreSlim SemaphoreSlim = new (1);
37+
private static readonly SemaphoreSlim SemaphoreSlim = new(1);
3738

3839
// Default/minimal scopes for authentication, if none are provided.
3940
private static readonly string[] DefaultScopes = { "User.Read" };
@@ -572,13 +573,6 @@ private async Task<List<WebAccountProvider>> GetWebAccountProvidersAsync()
572573
await FindAndAddProviderAsync(MicrosoftProviderId, AadAuthority);
573574
}
574575

575-
// Local
576-
if (_webAccountProviderConfig.WebAccountProviderType == WebAccountProviderType.Any ||
577-
_webAccountProviderConfig.WebAccountProviderType == WebAccountProviderType.Local)
578-
{
579-
await FindAndAddProviderAsync(LocalProviderId);
580-
}
581-
582576
return providers;
583577

584578
async Task FindAndAddProviderAsync(

0 commit comments

Comments
 (0)