use of com.centurylink.mdw.auth.ClearTrustAuthenticator in project mdw-designer by CenturyLinkCloud.
the class WorkflowProject method getAuthenticator.
public Authenticator getAuthenticator() {
if (isGitVcs() && isRemote()) {
AppSummary appSummary = getRemoteAppSummary(true);
if (appSummary == null)
return null;
String oauthTokenUrl = appSummary.getOAuthTokenUrl();
if (oauthTokenUrl != null)
return new OAuthAuthenticator(oauthTokenUrl);
if ("mdw".equals(appSummary.getAuthMethod())) {
try {
return new MdwAuthenticator(appSummary.getAppId(), MdwPlugin.getSettings().getMdwCentralUrl() + "/services/com/centurylink/mdw/central/auth");
} catch (Exception ex) {
PluginMessages.uiError(ex, "Authentication", this);
}
}
}
// https://wiki.eclipse.org/Security:_KeyStore_support_for_Eclipse
return new ClearTrustAuthenticator();
}
Aggregations