.NET 3.5 Application/Sitefinity Integration
Posted: Wed May 26, 2010 12:33 pm
Hi,
I am trying to integrate Able Commerce 7.x into an existing .NET 3.5 application (Sitefinity 3.7 CMS), which has its own membership and role providers. I merged both applications into one website and I combined the Web.config files. I am having the following technical issues:
1. It appears that an HTTP Handler from AbleCommerce intercepts all login attempts from anywhere in the system.:
How can I program this handler to only intercept attempts from the AbleCommerce website and not the Sitefinity one?
When I remove this handler and its associated membership provider in the Web.config, all of my logins for Sitefinity work fine. With this HTTP Handler and Membership Provider, users are authenticated twice; once for Sitefinity and once for AbleCommerce. If the same user name exists in both the AbleCommerce and Sitefinity database, then the user is authenticated. If not, then the user lacks permissions.
As a workaround, I tried creating the same user name in both the AbleCommerce and Sitefinity systems. While this allowed users to log in and out of Sitefinity, users were unable to log into the admin of AbleCommerce. Users were sent to the default Sitefinity login page where no user names or passwords would work.
2. Is there a way to change the default loginURL page, if the user is in the AbleCommerce website only? Here is what I mean:
When users lack permissions, they are sent back to my Sitefinity login page.
I am trying to integrate Able Commerce 7.x into an existing .NET 3.5 application (Sitefinity 3.7 CMS), which has its own membership and role providers. I merged both applications into one website and I combined the Web.config files. I am having the following technical issues:
1. It appears that an HTTP Handler from AbleCommerce intercepts all login attempts from anywhere in the system.:
Code: Select all
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<!--AbleCommerce HTTP Module for security-->
<!--<add name="AbleCommerceHttpModule" type="CommerceBuilder.Services.AbleCommerceHttpModule, CommerceBuilder.Services" preCondition="managedHandler"/>-->
When I remove this handler and its associated membership provider in the Web.config, all of my logins for Sitefinity work fine. With this HTTP Handler and Membership Provider, users are authenticated twice; once for Sitefinity and once for AbleCommerce. If the same user name exists in both the AbleCommerce and Sitefinity database, then the user is authenticated. If not, then the user lacks permissions.
As a workaround, I tried creating the same user name in both the AbleCommerce and Sitefinity systems. While this allowed users to log in and out of Sitefinity, users were unable to log into the admin of AbleCommerce. Users were sent to the default Sitefinity login page where no user names or passwords would work.
2. Is there a way to change the default loginURL page, if the user is in the AbleCommerce website only? Here is what I mean:
Code: Select all
<forms name=".ASPNET" loginUrl="~/sitefinity/login.aspx" protection="All" timeout="1440" path="/" slidingExpiration="true"/>