Auth model obtain fix

This commit is contained in:
Serge Rider
2020-09-07 20:01:52 +03:00
parent 55b235783e
commit ba1318a860
@@ -207,15 +207,16 @@ public class WebConnectionInfo {
@Property
public String getAuthModel() {
return dataSourceContainer.getConnectionConfiguration().getAuthModelId();
}
@Property
public WebPropertyInfo[] getAuthProperties() {
String authModelId = dataSourceContainer.getConnectionConfiguration().getAuthModelId();
if (CommonUtils.isEmpty(authModelId)) {
authModelId = AuthModelDatabaseNative.ID;
}
return authModelId;
}
@Property
public WebPropertyInfo[] getAuthProperties() {
String authModelId = getAuthModel();
DBPAuthModelDescriptor authModel = DBWorkbench.getPlatform().getDataSourceProviderRegistry().getAuthModel(authModelId);
if (authModel == null) {
return new WebPropertyInfo[0];