Single SigOn with NopCommerce?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 14 años
Wouldn't that just be the
Membership.GetUser().ProviderUserKey
in your custom Web Application?
Hace 14 años
I believe that only works with SQLDatPRovider if I'm not mistaken. My custom application uses MySQL.
Hace 14 años
Got it to work using FormsAuthenticationTicket and creating an OnAuthenticate event handler in the CustomerLogin module (this is for version 1.5). Works like a charm and failry simple.
Hace 13 años
I'm looking to do a similar thing. Probably I'll use the NopCommerce database and not change much at that end, then write a membership provider for the other sites which use the same db. Looking like it will be a lengthy job. Anyone have code they can share or any hints/tips?
Hace 13 años
I would avoid writing your own provider and just use the one that comes with the nop software.
Hace 13 años
I wrote my own provider in the end, wasn't too difficult. I've changed the machineKey for all sites including NopCommerce, and changed the cookie name for all the other sites to match Nop, seems to work great on the bench.
Hace 11 años
I know this is an old post, but I struggled with it for a couple days... and nights...

Anyways, I have a website that's been running and I recently installed NopCommerce in a virtual directory.  In order to share authentication, I had to create an identical machine key under system.web in both web.config files and it works like a charm.  I may try and create my own login form for the original site, but for now, I just use the login under nopCommerce since it has everything I need.

I hope this will help someone in the future.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.