From 1c407fff1e55bc22c56c50d7646023d1dc5e7d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Thu, 1 Jul 2021 21:04:24 +0200 Subject: [PATCH] Update the ID0112 and ID0166 messages to help debug invalid ASP.NET Core configurations --- src/OpenIddict.Abstractions/OpenIddictResources.resx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenIddict.Abstractions/OpenIddictResources.resx b/src/OpenIddict.Abstractions/OpenIddictResources.resx index ed48e9c7..d618a837 100644 --- a/src/OpenIddict.Abstractions/OpenIddictResources.resx +++ b/src/OpenIddict.Abstractions/OpenIddictResources.resx @@ -500,7 +500,7 @@ Make sure that neither DefaultAuthenticateScheme, DefaultChallengeScheme, Defaul This may indicate that the event handler responsible of processing OpenID Connect responses was not registered or was explicitly removed from the handlers list. - An unknown error occurred while retrieving the OpenIddict server context. + An error occurred while retrieving the OpenIddict server context. On ASP.NET Core, this may indicate that the authentication middleware was not registered early enough in the request pipeline. Make sure that 'app.UseAuthentication()' is registered before 'app.UseAuthorization()' and 'app.UseEndpoints()' (or 'app.UseMvc()') and try again. An error occurred while authenticating the current request. @@ -716,7 +716,7 @@ This may indicate that an instance of another handler was registered with the sa Make sure that neither DefaultSignInScheme nor DefaultSignOutScheme point to an instance of the OpenIddict ASP.NET Core validation handler. - An unknown error occurred while retrieving the OpenIddict validation context. + An error occurred while retrieving the OpenIddict validation context. On ASP.NET Core, this may indicate that the authentication middleware was not registered early enough in the request pipeline. Make sure that 'app.UseAuthentication()' is registered before 'app.UseAuthorization()' and 'app.UseEndpoints()' (or 'app.UseMvc()') and try again. Generic token validation is not supported by the validation handler.