Reply
 
Thread Tools Display Modes
  #1  
Old 07-30-2011, 09:35 AM
Carlos Guimaraes's Avatar
Carlos Guimaraes Carlos Guimaraes is offline
Junior Member
 
Join Date: Mar 2011
Posts: 5
Arrow How to: ECWID Single Sign-On for Joomla! 1.5, 1.6 and 1.7.x - VERSION 1.1[FIX] AVAILABLE

Hi,
I want share with ecwid folks a Single Sign-on plugin for joomla! 1.5, 1.6 and 1.7 that I built tonight.
Just install, setup and enable plugin to get your ecwid store login integrated with joomla!

NEW 1.1 VERSION attached!

STEP 1) Download and Install Ecwid SSO Joomla! Plugin for your Joomla version
STEP 2) Go to http://WWW.YOURSITE/administrator/in...
and search for "ECWID Single Sign-On Auth"
STEP 3) Update "ECWID Single Sign-On Auth" parameters with your "SSO Secret key"

The (SSO) Application ID is NOT required. You can leave this parameter empty.
The secret key (SSO secret key) can be obtained here:
YOURSTORE -> Control Panel -> System Settings -> API (Single Sign-on (SSO) API)

UPGRADE
STEP 1) Just download and Install new Ecwid SSO Joomla! Plugin for your Joomla version

If you have a previous (SSO) Application ID defined, you must fill same value to allow your registered customers to sign on your website.

NEVER CHANGE your "SSO Application ID" Changing appId of an existing authentication system will result in inability of registered customers to sign on your website, because new customers will have different appId/userId combination and conflict with existing database records with the same email.

Enjoy!
Thank you
Attached Files
File Type: zip ecwidssov1.1-J1.5.zip (2.7 KB, 259 views)
File Type: zip ecwidsso_v1.1-J1.7.zip (2.7 KB, 503 views)

Last edited by Carlos Guimaraes; 11-23-2011 at 06:39 AM. Reason: Update information and plugins to a fix critical bug, see http://www.ecwid.com/forums/showthread.php?p=39987
Reply With Quote
The Following User Says Thank You to Carlos Guimaraes For This Useful Post:
Martin Sund (12-19-2012)
  #2  
Old 07-31-2011, 12:21 AM
SoBe Couture's Avatar
SoBe Couture SoBe Couture is offline
Senior Member
 
Join Date: Apr 2011
Posts: 237
Thumbs up

Quote:
Originally Posted by Carlos Guimaraes View Post
Hi,
I want share with ecwid folks a Single Sign-on plugin for joomla! 1.5, 1.6 and 1.7 that I built tonight.
Just install, setup and enable plugin to get your ecwid store login integrated with joomla!

STEP 1) Download and Install Ecwid SSO Joomla! Plugin for your Joomla version
STEP 2) Go to http://WWW.YOURSITE/administrator/in...
and search for "ECWID Single Sign-On Auth"
STEP 3) Update "ECWID Single Sign-On Auth" parameters with your "SSO Secret key" and "SSO Application ID"
NEVER CHANGE your "SSO Application ID" Changing appId of an existing authentication system will result in inability of registered customers to sign on your website, because new customers will have different appId/userId combination and conflict with existing database records with the same email.

Enjoy!
Thank you
BEER ALERT... STICKY THIS!@!@!@.

Question 1.

If we install Jomsocial or Community Builder will this work with them as well? automatically keeping one logged in for purchases?

Question 2.

How does this work EXACTLY? I.e. if you log in to joomla and browse site and then say, oh I want to buy something... you won't need to login via the ecwid login? 2nd, if you are not logged into site and come accross wanting to buy something and then what happens??? Ecwid or Joomla (or 3rd party i.e. jomsocial) asks you to login <<< meaning, there is no need to login through ecwid anymore?

or is it a whichever comes first approach?
1. log into joomla logged into both?
2. log into ecwid logged into both?
3. log into ecwid only logged into ecwid? << have to login into site if want further site access.

PM me your paypal email and if all works I will donate!
Reply With Quote
  #3  
Old 07-31-2011, 05:01 AM
Carlos Guimaraes's Avatar
Carlos Guimaraes Carlos Guimaraes is offline
Junior Member
 
Join Date: Mar 2011
Posts: 5
Default

Hi SoBe,

Here we go

Question 1.

If we install Jomsocial or Community Builder will this work with them as well? automatically keeping one logged in for purchases?
Yes, since this pluggin is based on joomla core authentication system. This plugin should be compatible with any joomla! 3rd party extension.


Question 2.

How does this work EXACTLY?
This plugin check your joomla! site every time at render time. If a user is logged, this plugin will insert at site body a "ecwid_sso_profile" javascript variable
with current signed user information to login at Ecwid store. Every time you load your Ecwid store, current logged user information is checked.
This allow you integrate your Ecwid store with any joomla! 3rd extension available.

This implementation follow document found here: https://docs.google.com/document/pub...

I.e. if you log in to joomla and browse site and then say, oh I want to buy something... you won't need to login via the ecwid login?
Yes, when you load store page you will be logged into Ecwid


2nd, if you are not logged into site and come accross wanting to buy something and then what happens???
At this time nothing will happen. Ecwid will respond as usual when a user is not logged.

Ecwid or Joomla (or 3rd party i.e. jomsocial) asks you to login <<< meaning, there is no need to login through ecwid anymore?
Yes, no more need to login through Ecwid. This feature could be implemented in this plugin.
ie. when a customer try access store and he/she is not logged, plugin could take care to redirect them
to joomla! core, jomsocial, community builder, etc.. login / registration page.

or is it a whichever comes first approach?
1. log into joomla logged into both?
YES

2. log into ecwid logged into both?
NO, this plugin integrate joomla! core and any joomla! 3rd party extension to login customer into -> Ecwid.

3. log into ecwid only logged into ecwid? << have to login into site if want further site access.
Yes, log into ecwid only logged into ecwid. To avoid customer confusion I remove "Sign In" link from my clients stores.

Another thing to remember is never change your "SSO application ID". If you do, your customers registered with old AppID will
be unable to login into your ecwid store.

PM me your paypal email and if all works I will donate!
Ok, thank you very much!

I hope I have answered your questions. But If you have more, please feel free to ask

Thank you
Carlos Guimaraes
__________________
I LUV

Last edited by Carlos Guimaraes; 07-31-2011 at 05:07 AM.
Reply With Quote
  #4  
Old 07-31-2011, 05:22 AM
Jeff Johnson's Avatar
Jeff Johnson Jeff Johnson is offline
Junior Member
 
Join Date: Jul 2011
Posts: 2
Default

Thanks for building the plugin! I will test it soon.
This is a feature I have been waiting for, for a long time.
Thanks again
Reply With Quote
  #5  
Old 07-31-2011, 07:54 AM
slice's Avatar
slice slice is offline
 
Join Date: Dec 2009
Posts: 693
Default

Hi,

Thanks for this very useful plugin

Update:

I was struggling to get this working, not sure what to enter in which box as the labels are different.
Got it sorted now. See below (Ecwid on the left Joomla 1.5 plugin on the right)

Order API secret key --> (SSO) Application ID
SSO secret key --> Single Sign-on API (SSO) Secret key

Last edited by slice; 07-31-2011 at 08:15 AM. Reason: worked it out
Reply With Quote
  #6  
Old 08-01-2011, 11:50 PM
Pier's Avatar
Pier Pier is offline
 
Join Date: Jan 2011
Posts: 18
Default

Awesome! I will test it soon ....
Reply With Quote
  #7  
Old 08-10-2011, 06:55 PM
F D V's Avatar
F D V F D V is offline
Junior Member
 
Join Date: Aug 2011
Posts: 13
Default

Good afternoon.
Excuse for bad English. Used your plug-in. Works perfectly.

Thank you very much.
Reply With Quote
  #8  
Old 08-12-2011, 11:38 AM
Jaddy's Avatar
Jaddy Jaddy is offline
Junior Member
 
Join Date: Jun 2011
Posts: 1
Default

Hi do this plugin work with joomla facebook connect?
Reply With Quote
  #9  
Old 08-12-2011, 02:17 PM
slice's Avatar
slice slice is offline
 
Join Date: Dec 2009
Posts: 693
Default

I don't know but it certainly works with Facebook login via Janrain Engage, so you can have the same sort of login as to the Ecwid control panel.

There are a couple of things that could use some improvement:

If you have hidden the Ecwid login links and only use the ones in Joomla, people will not be prompted to login and instead just checkout without registering (not a problem though). So far I have quite a lot of people registering but only one of these actually placed an order while being logged in.

When a registered customers tries to check on the progress of an order and is asked to log in, they will not have the ability to do so if they have registered through Janrain as they do not have an Ecwid password. (If they are clever, they could probably also open up a Joomla tab and log in there)

Last edited by slice; 08-12-2011 at 02:18 PM. Reason: added 'not'
Reply With Quote
  #10  
Old 08-15-2011, 04:23 PM
Qetzal's Avatar
Qetzal Qetzal is offline
Ecwid Team
 
Join Date: Sep 2009
Posts: 11,067
Default

As always thank you for your valuable suggestions, Slice.

Quote:
If you have hidden the Ecwid login links and only use the ones in Joomla, people will not be prompted to login and instead just checkout without registering (not a problem though). So far I have quite a lot of people registering but only one of these actually placed an order while being logged in.
Yes, if you use the SSO feature, than Ecwid will not show its "Sign in" links during checkout. We're considering improving this in the following way: add a way to specify the URL of your site's "Sign in/Register" pages, so Ecwid will show the "Sign in/Register" links during checkout, but they will point to your site instead of built-in Ecwid's registration forms.

Quote:
When a registered customers tries to check on the progress of an order and is asked to log in, they will not have the ability to do so if they have registered through Janrain as they do not have an Ecwid password. (If they are clever, they could probably also open up a Joomla tab and log in there)
Can you please clarify this? Do you mean that if SSO is used and an unlogged customer opens a "My Account" page, he/she sees a prompt to log in with his username and password?
__________________
Eugene K.
Ecwid Team

@ecwid | Facebook Page | Ecwid Knowledge Base
Reply With Quote
Reply

Tags
ecwid, joomla, plugin, single sign on

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:48 AM.
Powered by vBulletin® Version 3.8.6. Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.