Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
It looks like you need to update your Apps/Shell/Pages/Login.aspx
Basically the entire <asp:Panel ID="RegisterPanel" Visible="false" runat="server"> section should be removed if it is there. And to update the Inherits attribute to your custom code behind instead of the default one (Mediachase.Commerce.Manager.Login)
What do you have in your web.config for
<membership>
<providers>
<clear/>
</providers>
</membership>
?
Quan Mai, updating the intherits attribute did the trick.
It got replaced by the default one when updating the nuget packages.
Thanks for the fast responses!
Hi,
I'm having issues when I try to login directly into commercemanager.
What works:
-Logging in locally in CMS and navigate to the commercemanager -> I do not need to log in and can use commerce manager without problems.
What doesn't:
-I navigate to the commercemanager in an incognito screen, I get the login form. After trying to login I get a "Default membership provider must be specified" error
-Logging in on our azure test environment in CMS and navigate to the commercemanager: I get the same "Default membership provider must be specified" error
We use CMS 11.18 and Commerce 12.17.1
We are using aspnetidentity. this is our Owinstartup class in commerce manager:
using Frucon.CommerceManager; using Microsoft.Owin; [assembly: OwinStartup(typeof(OwinStartupCommerceManager))] namespace Frucon.CommerceManager { using System; using System.Linq; using System.Web.Configuration; using EPiServer.Cms.UI.AspNetIdentity; using EPiServer.ServiceLocation; using Frucon.Shared.Models.Entities; using Mediachase.Data.Provider; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin; using Microsoft.Owin.Security.Cookies; using Owin; public class OwinStartupCommerceManager { private readonly IConnectionStringHandler connectionStringHandler; public OwinStartupCommerceManager() : this(ServiceLocator.Current.GetInstance<IConnectionStringHandler>()) { // Parameterless constructor required by OWIN. } public OwinStartupCommerceManager(IConnectionStringHandler connectionStringHandler) { this.connectionStringHandler = connectionStringHandler; } public void Configuration(IAppBuilder app) { app.AddCmsAspNetIdentity<SiteUser>(new ApplicationOptions { ConnectionStringName = this.connectionStringHandler.Commerce.Name }); // Enable the application to use a cookie to store information for the signed in user // and to use a cookie to temporarily store information about a user logging in with a third party login provider. // Configure the sign in cookie. app.UseCookieAuthentication(new CookieAuthenticationOptions { AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie, LoginPath = new PathString("/Apps/Shell/Pages/Login.aspx"), Provider = new CookieAuthenticationProvider { // Enables the application to validate the security stamp when the user logs in. // This is a security feature which is used when you change a password or add an external login to your account. OnValidateIdentity = SecurityStampValidator.OnValidateIdentity<ApplicationUserManager<SiteUser>, SiteUser>( validateInterval: TimeSpan.FromMinutes(30), regenerateIdentity: (manager, user) => manager.GenerateUserIdentityAsync(user)), OnApplyRedirect = context => context.Response.Redirect(context.RedirectUri) } }); } } }
Any idea what could go wrong?
Thanks in advance,
Brecht Vanneste