Page 1 of 1

Single Sign On (again)

Posted: Thu Nov 03, 2011 11:54 am
by SteveV
A quick search reveals that this has been asked a number of times and given that it's such a common usage sceneario I'm really surprized that this hasn't been answered in any detail. I'm playing with the trial version and anything that helps QUICKLY prove AbleCommerce's worth and power would be a huge benefit. I'm also guessing the the lack or samples for many recurring use cases is costing Able some lost business. Yeah, it's great that I can wirte some code to make it work, but if 50 devs have had to write similar code it strikes me as pretty silly that there isn't a sample available.

Having said that; does anyone have a sample that shows how to get Single Sign On working using an existing ASP membership provider and role provider?

Thanks -- Steve

Re: Single Sign On (again)

Posted: Fri Nov 04, 2011 2:26 pm
by SteveV
Anyone?

Re: Single Sign On (again)

Posted: Tue Nov 08, 2011 11:05 am
by Arsen
Agree with you Steve, when you find something please post it here.

Re: Single Sign On (again)

Posted: Tue Nov 08, 2011 12:24 pm
by Logan Rhodehamel
Hi Steve-

As you are going to find out we didn't consistently utilize the Membership framework with AC7. What you are wanting to do is something we had in mind as a possibility but it was never brought to an officially supported feature. Due to this it was never tested. Others have gone down this path in the past and pointed out some difficulties.

viewtopic.php?f=42&t=14772
viewtopic.php?f=44&t=15631#p67023

I still think it is possible. The latter link is a post directly to what I think is the best advice. You can create a wrapper around our membership provider, use it to call our base methods and also implement your custom functionality. What you are going to find is that we have a few places in our code where we don't invoke membership functions using the Membership framework. It will require some attention to our login/logout scripts to make sure they use the framework rather than invoking our implementation directly. If you want to try down this path and post your obstacles we can keep an eye on this thread and try to assist it along. I think there is enough interest - we may need to improve support for custom membership providers.