Authentication Changes

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");
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact