I've setup a membership database for an Umbraco 7 site and everything works fine, however when I login to the website it conflicts with the Umbraco back-office login, and the only way to sort it is to logout of the front-end and sometimes clear the cookies.
The only change I've made is to the forms authentication element in the web.config (changed the cookie name).
Why would the front-end memebership be conflicting with the back-end?
Just to add to this, this is the exception I get from /umbraco/backoffice/UmbracoApi/Authentication/IsAuthenticated:
{"Message":"An error has occurred.","ExceptionMessage":"Object reference not set to an instance of an object.","ExceptionType":"System.NullReferenceException","StackTrace":" at Umbraco.Web.Security.WebSecurity.ValidateCurrentUser(Boolean throwExceptions)\r\n at Umbraco.Web.Security.WebSecurity.AuthorizeRequest(Boolean throwExceptions)\r\n at Umbraco.Web.Editors.AuthenticationController.IsAuthenticated()\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.<GetExecutor>b__c(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.<>c__DisplayClass5.<ExecuteAsync>b__4()\r\n at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)"}
Conflict with FORMS authentication (7.1.1)
Hi all
I've setup a membership database for an Umbraco 7 site and everything works fine, however when I login to the website it conflicts with the Umbraco back-office login, and the only way to sort it is to logout of the front-end and sometimes clear the cookies.
The only change I've made is to the forms authentication element in the web.config (changed the cookie name).
Why would the front-end memebership be conflicting with the back-end?
Thanks
Kev
Just to add to this, this is the exception I get from /umbraco/backoffice/UmbracoApi/Authentication/IsAuthenticated:
{"Message":"An error has occurred.","ExceptionMessage":"Object reference not set to an instance of an object.","ExceptionType":"System.NullReferenceException","StackTrace":" at Umbraco.Web.Security.WebSecurity.ValidateCurrentUser(Boolean throwExceptions)\r\n at Umbraco.Web.Security.WebSecurity.AuthorizeRequest(Boolean throwExceptions)\r\n at Umbraco.Web.Editors.AuthenticationController.IsAuthenticated()\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.<GetExecutor>b__c(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.<>c__DisplayClass5.<ExecuteAsync>b__4()\r\n at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)"}
Another update, this looks like it might because I'm using ASP.Net Identity with my website.
Must be settings relating to the cookie, anyone any ideas?
I've got this same problem.
I had no problems in Umbraco 6, the Identity worked fine even when a user was logged into the site and the Umbraco back end simultaniously.
The Umbraco 7 backend flattens my forms ticket and Identity with the backend identity. Nothing has changed apart from upgrading to 7.1.4.
I'll post an update if I manage to fix it, but I'm struggling at the moment.
is working on a reply...