Single signon

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
sambaraju
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Wed Oct 23, 2013 5:15 am

Single signon

Post by sambaraju » Thu Oct 31, 2013 8:37 am

Hello members,

We are in need of implementing a single signon in AC Gold to get to AC from external sites. I didn't see any answers to a couple of posts from other users.

Is there is something that AC Gold has that we could leverage on? Please suggest any methodology we can adopt that is consistent with AC if we want to implement it with custom code by modifying the source.

Thanks

Sai

User avatar
MisterMike
Ensign (ENS)
Ensign (ENS)
Posts: 12
Joined: Tue Apr 16, 2013 7:37 am

Re: Single signon

Post by MisterMike » Thu Nov 21, 2013 3:21 pm

SSO is not supported in AbleCommerce. I added code at the top of the LoginButton_Click handler in the Website/ConLib/LoginDialog.ascx.cs user control to authenticate the user using LDAP authentication. If the user is authenticated, I create an account in AbleCommerce for them. I give everyone the same password. I created a custom Membership Provider that just calls the AbleCommerce membership provider with the user's username and password. I don't know if you need the source for the custom membership provider, but I had the source. You specify the membership provider in the web.config file. The user still has to login, but this way they can use their same network username and password.

Code: Select all

	public class CustomMembershipProvider : CommerceBuilder.Users.AbleCommerceMembershipProvider
	{
		public override bool ValidateUser(string userName, string password)
		{
			return base.ValidateUser(userName, Globals.DefaultPassword);
		}
	}

Post Reply