Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Replace OnChallenge with OnTokenValidated event handler
KrzysztofPajakfb363829111e
diff --git a/src/API/Grand.Api/Infrastructure/ApiAuthenticationRegistrar.cs b/src/API/Grand.Api/Infrastructure/ApiAuthenticationRegistrar.csindex ddfeca6e1..670ff180b 100644--- a/src/API/Grand.Api/Infrastructure/ApiAuthenticationRegistrar.cs+++ b/src/API/Grand.Api/Infrastructure/ApiAuthenticationRegistrar.cs@@ -35,12 +35,7 @@ public class ApiAuthenticationRegistrar : IAuthenticationBuildercontext.Response.StatusCode = 401;context.Response.ContentType = "text/plain";await context.Response.WriteAsync(context.Exception.Message);- },- OnChallenge = context =>- {- context.HandleResponse();- return Task.CompletedTask;- },+ },OnTokenValidated = async context =>{try@@ -88,12 +83,7 @@ public class ApiAuthenticationRegistrar : IAuthenticationBuildercontext.Response.StatusCode = 401;context.Response.ContentType = "text/plain";await context.Response.WriteAsync(context.Exception.Message);- },- OnChallenge = context =>- {- context.HandleResponse();- return Task.CompletedTask;- },+ },OnTokenValidated = async context =>{try