From f83b5732f93ee4e96e77a7448eceb7d8e2ea1d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Fri, 10 Sep 2021 15:39:05 +0200 Subject: [PATCH] Add a SignIn method to HandleVerificationRequestContext --- src/OpenIddict.Server/OpenIddictServerEvents.Device.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/OpenIddict.Server/OpenIddictServerEvents.Device.cs b/src/OpenIddict.Server/OpenIddictServerEvents.Device.cs index f2b0c55a..f494f7bb 100644 --- a/src/OpenIddict.Server/OpenIddictServerEvents.Device.cs +++ b/src/OpenIddict.Server/OpenIddictServerEvents.Device.cs @@ -197,6 +197,12 @@ namespace OpenIddict.Server get => Transaction.Request!; set => Transaction.Request = value; } + + /// + /// Allows OpenIddict to return a sign-in response using the specified principal. + /// + /// The claims principal. + public void SignIn(ClaimsPrincipal principal) => Principal = principal; } ///