From 718e894d5d4af72474e3a3a254487b9fcfdbe7cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Thu, 1 Feb 2024 16:26:10 +0100 Subject: [PATCH] Update the XML documentation to clarify that disabling token storage prevents the device authorization flow from being used --- src/OpenIddict.Server/OpenIddictServerBuilder.cs | 6 ++++-- src/OpenIddict.Server/OpenIddictServerOptions.cs | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/OpenIddict.Server/OpenIddictServerBuilder.cs b/src/OpenIddict.Server/OpenIddictServerBuilder.cs index 0b6e917d..4a8a1de1 100644 --- a/src/OpenIddict.Server/OpenIddictServerBuilder.cs +++ b/src/OpenIddict.Server/OpenIddictServerBuilder.cs @@ -1546,9 +1546,11 @@ public sealed class OpenIddictServerBuilder /// for the tokens and codes returned by the OpenIddict server. /// Using this option is generally NOT recommended as it prevents /// the tokens and codes from being revoked (if needed). - /// Note: disabling token storage requires disabling sliding - /// expiration or enabling rolling tokens. /// + /// + /// Note: disabling token storage prevents the device authorization flow + /// from being used and automatically turns sliding expiration off. + /// /// The instance. public OpenIddictServerBuilder DisableTokenStorage() => Configure(options => options.DisableTokenStorage = true); diff --git a/src/OpenIddict.Server/OpenIddictServerOptions.cs b/src/OpenIddict.Server/OpenIddictServerOptions.cs index 794ebf5d..c306f31b 100644 --- a/src/OpenIddict.Server/OpenIddictServerOptions.cs +++ b/src/OpenIddict.Server/OpenIddictServerOptions.cs @@ -298,6 +298,10 @@ public sealed class OpenIddictServerOptions /// returned by OpenIddict. Using this option is generally NOT recommended /// as it prevents the tokens and codes from being revoked (if needed). /// + /// + /// Note: disabling token storage prevents the device authorization flow + /// from being used and automatically turns sliding expiration off. + /// public bool DisableTokenStorage { get; set; } ///