mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-707 Default driver auth model detect
This commit is contained in:
+5
@@ -210,6 +210,11 @@ public class WebDatabaseDriverConfig {
|
||||
|
||||
@Property
|
||||
public String getDefaultAuthModel() {
|
||||
for (DBPAuthModelDescriptor am : DataSourceProviderRegistry.getInstance().getApplicableAuthModels(driver)) {
|
||||
if (am.isDefaultModel()) {
|
||||
return am.getId();
|
||||
}
|
||||
}
|
||||
return AuthModelDatabaseNative.ID;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user