Challenge() redirecting to incorrect page from checkout

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Version 4.1

1. Add Item to Cart
2. Proceed to Checkout as Guest / Not Authenticated
3. Redirected to incorrect url account/login?returnUrl=%2Fcheckout


CheckoutController.cs [Line 156]
if (_workContext.CurrentCustomer.IsGuest() && (!_orderSettings.AnonymousCheckoutAllowed || downloadableProductsRequireRegistration))
                return Challenge();
5 years ago
I have the same issue from a plugin. Did you find a solution?
5 years ago
Hi.

We've faced the same issue and were able to resolve this by adding this:

Nop.Web.Framework.Infrastructure.Extensions.ServiceCollectionExtensions
Line 198

options.DefaultChallengeScheme = NopAuthenticationDefaults.AuthenticationScheme;
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.