From bf366075c288a917b80806ce5d8e5822d963ad4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Fri, 20 Jan 2023 16:42:42 +0100 Subject: [PATCH] Decorate the new APIs in OpenIddictClientService with [RequiresPreviewFeatures] --- src/OpenIddict.Client/OpenIddictClientService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/OpenIddict.Client/OpenIddictClientService.cs b/src/OpenIddict.Client/OpenIddictClientService.cs index 8551f799..a67756c4 100644 --- a/src/OpenIddict.Client/OpenIddictClientService.cs +++ b/src/OpenIddict.Client/OpenIddictClientService.cs @@ -5,6 +5,7 @@ */ using System.Diagnostics; +using System.Runtime.Versioning; using System.Security.Claims; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; @@ -35,6 +36,7 @@ public sealed class OpenIddictClientService /// The application-specific properties that will be added to the authentication context. /// The that can be used to abort the operation. /// The response and a merged principal containing the claims extracted from the tokens and userinfo response. + [RequiresPreviewFeatures] public ValueTask ChallengeWithBrowserAsync( Uri issuer, string[]? scopes = null, Dictionary? parameters = null, @@ -61,6 +63,7 @@ public sealed class OpenIddictClientService /// The application-specific properties that will be added to the authentication context. /// The that can be used to abort the operation. /// The response and a merged principal containing the claims extracted from the tokens and userinfo response. + [RequiresPreviewFeatures] public ValueTask ChallengeWithBrowserAsync( string provider, string[]? scopes = null, Dictionary? parameters = null, @@ -88,6 +91,7 @@ public sealed class OpenIddictClientService /// The application-specific properties that will be added to the authentication context. /// The that can be used to abort the operation. /// The response and a merged principal containing the claims extracted from the tokens and userinfo response. + [RequiresPreviewFeatures] private async ValueTask ChallengeWithBrowserAsync( OpenIddictClientRegistration registration, string[]? scopes = null, Dictionary? parameters = null, @@ -186,6 +190,7 @@ public sealed class OpenIddictClientService /// The nonce obtained after a challenge operation. /// The that can be used to abort the operation. /// The response and a merged principal containing the claims extracted from the tokens and userinfo response. + [RequiresPreviewFeatures] public async ValueTask<(OpenIddictResponse AuthorizationResponse, OpenIddictResponse TokenResponse, ClaimsPrincipal Principal)> AuthenticateWithBrowserAsync( string nonce, CancellationToken cancellationToken = default) {