uStore login from host site

251 views
Skip to first unread message

Charles Norwood

unread,
Jan 20, 2016, 11:51:31 PM1/20/16
to XMPie Interest Group
A customer wants customers to login to their site, then click on a link which opens uStore with their login and password details from their site flowing through to the login in uStore. Has anyone donen this in the past? Thank you

Simon Knott

unread,
Jan 21, 2016, 5:18:43 AM1/21/16
to XMPie Interest Group
Hi Charles 

You can bypass the login screen by doing the following:

Enter the address of the uStore login page, followed by query string consisting of a Store ID (e.g. 8), a User Name (e.g. your...@domain.co.uk) and a Password (e.g. 12345678), as shown in the following example:

http://YouruStoreServer/uStore/login.aspx?StoreID=8&UserName=your...@domain.co.uk&Password=12345678

Hope that this helps you.

Regards

Simon Knott

Rob Gunston

unread,
Jan 21, 2016, 11:06:25 PM1/21/16
to XMPie Interest Group
Hi Simon, thanks for this tip.

Is there any way of passing the password in an encrypted format?

Ta Rob

Simon Knott

unread,
Jan 22, 2016, 4:11:27 AM1/22/16
to XMPie Interest Group
Hi Rob

If you search for 'single sign on' in the Find solution section of support it pulls up the following:

If you have access to your authenticated users uStore credentials and Store ID, you can now use Single Sign On to redirect the user to the uStore System, sparing them the need to resubmit a User Name and a Password.

To enable Single Sign On, enter the address of the uStore Customer applications login page, followed by the relevant users query string. The query string consists of a Store ID (e.g. 3), a User Name (e.g. john@abc.com) and a Password (e.g. abc), as shown in the following example:


http://UstoreServer/uStore/login.aspx?StoreID=3&UserName=jo...@abc.com&Password=abc&cultureID=3


The solution above is using a clear password field to provide the user credentials.
To avoid that you will need to develop elements on the outgoing website.

Here a uStore SDK / .NET example of how this code should look like:

uStore
.Common.BLL.Security security = new uStore.Common.BLL.Security();
string login = mEmail + ";" + mPassword + ";" + System.DateTime.Now.AddDays(1).ToString(System.Globalization.DateTimeFormatInfo.InvariantInfo) + ";false;" + mProductId + ";" + mLogoutUrl + ";" + mCultureId;
string qs = "Login=" + security.Encrypt(login);
string redirectUrl = mUrl + "?storeID=" + mStoreId + "&" + qs;
in order to use uStore.Common.BLL.Security you have to reference d:\xmpie\ustore\app\customerApp\bin\uStore.common.bll.dll

But I am not quite sure how to implement this method myself I believe you need some API programming knowledge.

Kind Regards

Simon Knott

Rob Gunston

unread,
Jan 24, 2016, 3:16:29 PM1/24/16
to XMPie Interest Group
Thanks Simon.

We have some API knowledge but develop in PHP rather than .NET, but will have a go!

Rob
Reply all
Reply to author
Forward
0 new messages