cloned.setAccessTokenURL(connections.getAccessTokenURL());
cloned.setCredentialStore(connections.getCredentialStore());
cloned.setServiceName(connections.getServiceName());
cloned.setAppId(connections.getAppId());
cloned.setAuthenticationService(connections.getAuthenticationService());
if (cloned.login(user)) {
return cloned;
}
}
return null;