From b19642cdfecf3265ff840bc8f14dd4ae96f0c671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Tue, 17 Nov 2020 16:02:40 +0100 Subject: [PATCH] Update ID0281/ID0282 to use "grant" instead of "flow" --- src/OpenIddict.Abstractions/OpenIddictResources.resx | 4 ++-- src/OpenIddict.Server/OpenIddictServerConfiguration.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/OpenIddict.Abstractions/OpenIddictResources.resx b/src/OpenIddict.Abstractions/OpenIddictResources.resx index 685a8b81..8e0bb501 100644 --- a/src/OpenIddict.Abstractions/OpenIddictResources.resx +++ b/src/OpenIddict.Abstractions/OpenIddictResources.resx @@ -1099,10 +1099,10 @@ To register the OpenIddict core services, reference the 'OpenIddict.Core' packag The duration cannot be less than 10 minutes. - The authorization code flow must be enabled when adding a response type containing '{0}'. + The authorization code grant must be enabled when adding a response type containing '{0}'. - The implicit flow must be enabled when adding a response type containing '{0}'. + The implicit grant must be enabled when adding a response type containing '{0}'. Provided symmetric key was incorrect size. Expected {0} bits, received {1}. diff --git a/src/OpenIddict.Server/OpenIddictServerConfiguration.cs b/src/OpenIddict.Server/OpenIddictServerConfiguration.cs index 2d133077..ff6d1a8e 100644 --- a/src/OpenIddict.Server/OpenIddictServerConfiguration.cs +++ b/src/OpenIddict.Server/OpenIddictServerConfiguration.cs @@ -35,18 +35,18 @@ namespace OpenIddict.Server throw new ArgumentNullException(nameof(options)); } + // Explicitly disable all the features that are implicitly excluded when the degraded mode is active. if (options.EnableDegradedMode) { - // Explicitly disable all the features that are implicitly excluded when the degraded mode is active. options.DisableAuthorizationStorage = options.DisableTokenStorage = options.DisableRollingRefreshTokens = true; options.IgnoreEndpointPermissions = options.IgnoreGrantTypePermissions = true; options.IgnoreResponseTypePermissions = options.IgnoreScopePermissions = true; options.UseReferenceAccessTokens = options.UseReferenceRefreshTokens = false; } + // Explicitly disable rolling refresh tokens when token storage is disabled. if (options.DisableTokenStorage) { - // Explicitly disable rolling refresh tokens token stroage is disabled. options.DisableRollingRefreshTokens = true; }