diff --git a/src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationHandlers.Authentication.cs b/src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationHandlers.Authentication.cs index e24c3814..fe113e82 100644 --- a/src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationHandlers.Authentication.cs +++ b/src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationHandlers.Authentication.cs @@ -7,6 +7,7 @@ using System.Collections.Immutable; using System.Diagnostics; using System.Runtime.InteropServices; +using System.Runtime.Versioning; using System.Text; using Microsoft.Extensions.Primitives; using OpenIddict.Extensions; @@ -68,6 +69,7 @@ public static partial class OpenIddictClientSystemIntegrationHandlers .Build(); /// + [SupportedOSPlatform("windows10.0.17763")] #pragma warning disable CS1998 public async ValueTask HandleAsync(ApplyAuthorizationRequestContext context) #pragma warning restore CS1998 diff --git a/src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationHandlers.cs b/src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationHandlers.cs index bfc84799..2bbfbd63 100644 --- a/src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationHandlers.cs +++ b/src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationHandlers.cs @@ -9,6 +9,7 @@ using System.Collections.Specialized; using System.ComponentModel; using System.Diagnostics; using System.Net; +using System.Runtime.Versioning; using System.Security.Claims; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; @@ -201,6 +202,7 @@ public static partial class OpenIddictClientSystemIntegrationHandlers .Build(); /// + [SupportedOSPlatform("windows10.0.17763")] public ValueTask HandleAsync(ProcessRequestContext context) { if (context is null) @@ -470,6 +472,7 @@ public static partial class OpenIddictClientSystemIntegrationHandlers .Build(); /// + [SupportedOSPlatform("windows10.0.17763")] public ValueTask HandleAsync(TContext context) { if (context is null) diff --git a/src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationHelpers.cs b/src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationHelpers.cs index dab9e004..3111208d 100644 --- a/src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationHelpers.cs +++ b/src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationHelpers.cs @@ -50,6 +50,7 @@ public static class OpenIddictClientSystemIntegrationHelpers /// /// The transaction instance. /// The instance or if it couldn't be found. + [SupportedOSPlatform("windows10.0.17763")] public static WebAuthenticationResult? GetWebAuthenticationResult(this OpenIddictClientTransaction transaction) => transaction.GetProperty(typeof(WebAuthenticationResult).FullName!); #endif diff --git a/src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationService.cs b/src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationService.cs index ec1253f2..6946c80d 100644 --- a/src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationService.cs +++ b/src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationService.cs @@ -7,6 +7,7 @@ using System.ComponentModel; using System.IO.Pipes; using System.Net; +using System.Runtime.Versioning; using System.Security.Principal; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; @@ -71,6 +72,7 @@ public sealed class OpenIddictClientSystemIntegrationService /// The that can be used to abort the operation. /// A that can be used to monitor the asynchronous operation. /// is . + [SupportedOSPlatform("windows10.0.17763")] internal Task HandleWebAuthenticationResultAsync(WebAuthenticationResult result, CancellationToken cancellationToken = default) => HandleRequestAsync(result ?? throw new ArgumentNullException(nameof(result)), cancellationToken); #endif