Browse Source

Update ID0281/ID0282 to use "grant" instead of "flow"

pull/1169/head
Kévin Chalet 5 years ago
parent
commit
b19642cdfe
  1. 4
      src/OpenIddict.Abstractions/OpenIddictResources.resx
  2. 4
      src/OpenIddict.Server/OpenIddictServerConfiguration.cs

4
src/OpenIddict.Abstractions/OpenIddictResources.resx

@ -1099,10 +1099,10 @@ To register the OpenIddict core services, reference the 'OpenIddict.Core' packag
<value>The duration cannot be less than 10 minutes.</value>
</data>
<data name="ID0281" xml:space="preserve">
<value>The authorization code flow must be enabled when adding a response type containing '{0}'.</value>
<value>The authorization code grant must be enabled when adding a response type containing '{0}'.</value>
</data>
<data name="ID0282" xml:space="preserve">
<value>The implicit flow must be enabled when adding a response type containing '{0}'.</value>
<value>The implicit grant must be enabled when adding a response type containing '{0}'.</value>
</data>
<data name="ID0283" xml:space="preserve">
<value>Provided symmetric key was incorrect size. Expected {0} bits, received {1}.</value>

4
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;
}

Loading…
Cancel
Save