Browse Source

Update the XML documentation to clarify that disabling token storage prevents the device authorization flow from being used

pull/1972/head
Kévin Chalet 2 years ago
parent
commit
718e894d5d
  1. 6
      src/OpenIddict.Server/OpenIddictServerBuilder.cs
  2. 4
      src/OpenIddict.Server/OpenIddictServerOptions.cs

6
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.
/// </summary>
/// <remarks>
/// Note: disabling token storage prevents the device authorization flow
/// from being used and automatically turns sliding expiration off.
/// </remarks>
/// <returns>The <see cref="OpenIddictServerBuilder"/> instance.</returns>
public OpenIddictServerBuilder DisableTokenStorage()
=> Configure(options => options.DisableTokenStorage = true);

4
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).
/// </summary>
/// <remarks>
/// Note: disabling token storage prevents the device authorization flow
/// from being used and automatically turns sliding expiration off.
/// </remarks>
public bool DisableTokenStorage { get; set; }
/// <summary>

Loading…
Cancel
Save