PDA

View Full Version : Web Shipping Javascript SDK by ShipRush - Passing crentials



Pat Gibson
12-21-2018, 06:55 AM
I have developed (and have customers using) a wrapped interface to ShipRush using the Web Shipping Javascript SDK. A few customers are creating second ShipRush accounts. Currently the only way they can change accounts requires logging out of the current account and logging back in.

Does the Web Shipping Javascript SDK support passing credentials? This would allow server side configuration on my part to pass the proper credentials and prevent the customer from logging into the wrong account based upon information in the local database.


thanks,
Pat

SYSOPS
12-26-2018, 09:32 AM
The JS interface doesn't support a login function at this time. That is only available in the full REST API.

SYSOPS

Pat Gibson
01-02-2019, 12:22 PM
Since I can't pass credentials. Can I force a new login each time, instead of the session caching that it does. The customer wants to use two different accounts.

SYSOPS
01-02-2019, 02:54 PM
Asking development to see if this is possible. Case 70304

Thank you,
SYSOPS

SYSOPR
01-03-2019, 01:51 AM
Since I can't pass credentials. Can I force a new login each time, instead of the session caching that it does. The customer wants to use two different accounts.

Case 70304


Two logins are not supported by ShipRush (or by most any web app). That is a limitation of the world of the web.

(The only way to use two logins is to use one in browser A [say Firefox] and the other login in browser B [say Chrome])

This is the web, for better or worse.

SYSOPR
01-03-2019, 01:52 AM
Since I can't pass credentials. Can I force a new login each time, instead of the session caching that it does. The customer wants to use two different accounts.

We might be able to give you a way to log out, but not a way to log in.

(Have you tried simply pumping the signout url? https://my.shiprush.com/signout )