Browse Source

Reword the ID0096/ID0097 exception messages

pull/1185/head
Kévin Chalet 5 years ago
parent
commit
176427229c
  1. 4
      src/OpenIddict.Abstractions/OpenIddictResources.resx
  2. 2
      src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.Authentication.cs
  3. 2
      src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.Session.cs

4
src/OpenIddict.Abstractions/OpenIddictResources.resx

@ -444,10 +444,10 @@ To use key rollover, register both the new certificate and the old one in the cr
<value>No custom verification request validation handler was found. When enabling the degraded mode, a custom 'IOpenIddictServerHandler&lt;ValidateVerificationRequestContext&gt;' must be implemented to validate verification requests (e.g to ensure the user_code is valid).</value>
</data>
<data name="ID0096" xml:space="preserve">
<value>No custom verification authentication handler was found. When enabling the degraded mode, a custom 'IOpenIddictServerHandler&lt;ProcessAuthenticationContext&gt;' must be implemented to validate device and user codes (e.g by retrieving them from a database).</value>
<value>No custom verification authentication handler was found. When enabling the degraded mode, a custom 'IOpenIddictServerHandler&lt;ProcessAuthenticationContext&gt;' must be implemented to handle device and user codes (e.g by retrieving them from a database).</value>
</data>
<data name="ID0097" xml:space="preserve">
<value>No custom verification sign-in handler was found. When enabling the degraded mode, a custom 'IOpenIddictServerHandler&lt;ProcessSignInContext&gt;' must be implemented to generate device and user codes and storing them in a database, if applicable.</value>
<value>No custom verification sign-in handler was found. When enabling the degraded mode, a custom 'IOpenIddictServerHandler&lt;ProcessSignInContext&gt;' must be implemented to handle device and user codes and store them in a database, if applicable.</value>
</data>
<data name="ID0098" xml:space="preserve">
<value>The event handler of type '{0}' couldn't be resolved.

2
src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.Authentication.cs

@ -452,7 +452,7 @@ namespace OpenIddict.Server.AspNetCore
var location = QueryHelpers.AddQueryString(context.RedirectUri,
from parameter in context.Response.GetParameters()
let values = (string?[]?) parameter.Value
where values != null
where values is not null
from value in values
where !string.IsNullOrEmpty(value)
select KeyValuePair.Create(parameter.Key, value));

2
src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.Session.cs

@ -354,7 +354,7 @@ namespace OpenIddict.Server.AspNetCore
var location = QueryHelpers.AddQueryString(context.PostLogoutRedirectUri,
from parameter in context.Response.GetParameters()
let values = (string?[]?) parameter.Value
where values != null
where values is not null
from value in values
where !string.IsNullOrEmpty(value)
select KeyValuePair.Create(parameter.Key, value));

Loading…
Cancel
Save