Page 1 of 1

Single signon

Posted: Thu Oct 31, 2013 8:37 am
by sambaraju
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

Re: Single signon

Posted: Thu Nov 21, 2013 3:21 pm
by MisterMike
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);
		}
	}