SGD Web Service Authentication Model Changes
From version 4.40, the web service API calls to create a webtop session and authenticate it have been combined into a single call. Applications using the Java classes shipped with SGD should be modified as follows.
Users of the com.tarantella.tta.webservices.ITarantella... Classes
| Pre 4.40 | Post 4.40 |
|---|---|
| ServiceLocator locator = new ServiceLocator(); ITarantellaWebtopSession ws = locator.getWebtopSession(); String xml = ws.startSession(); // Parse XML for sessionCookie...then xml = ws.authenticateSession(sessionCookie, "user", "pass"); // Parse XML for user data... |
ServiceLocator locator = new ServiceLocator(); ITarantellaWebtopSession ws = locator.getWebtopSession(); xml = ws.authenticate("user", "pass", "clientId", "locale"); // Parse XML for sessionCookie and user data... |
| ServiceLocator locator = new ServiceLocator(); ITarantellaWebtopSession ws = locator.getWebtopSession(); ITarantellaExternalAuth ea = locator.getExternalAuth(); String xml = ws.startSession(); // Parse XML for sessionCookie, set proxy user and password...then xml = ea.setSessionIdentity(sessionCookie, "user"); // Parse XML for user data... |
ServiceLocator locator = new ServiceLocator(); ITarantellaExternalAuth ea = locator.getExternalAuth(); // Set proxy user and password...then xml = ea.setSessionIdentity("user", "clientId", "locale"); // Parse XML for sessionCookie and user data... |
Users of the com.tarantella.tta.webservices.client.views Package
| Pre 4.40 | Post 4.40 |
|---|---|
| SessionBean session = new SessionBean(); session.startSession(); session.authenticateSession("user", "pass"); |
SessionBean session = new SessionBean(); session.authenticate("user", "pass", "clientId", "locale"); |
| SessionBean session = new SessionBean(); session.startSession(); session.setSessionIdentity("user", "proxyUser", "proxyPass"); |
SessionBean session = new SessionBean(); session.setSessionIdentity("user", "clientId", "locale", "proxyUser", "proxyPass"); |