CB-1808 auth model adminOnly property (#743)

* CB-1808 auth model adminOnly property

* CB-1808 rename auth model property
This commit is contained in:
Ainur
2022-04-04 11:25:52 +03:00
committed by GitHub
parent 08c42f0b99
commit d329a66894
2 changed files with 7 additions and 0 deletions
@@ -166,6 +166,8 @@ type DatabaseAuthModel {
displayName: String!
description: String
icon: String
# checks if the auth model needs a configuration on a local file system
requiresLocalConfiguration: Boolean
properties: [ObjectPropertyInfo!]!
}
@@ -58,6 +58,11 @@ public class WebDatabaseAuthModel {
return WebServiceUtils.makeIconId(model.getIcon());
}
@Property
public boolean getRequiresLocalConfiguration() {
return model.requiresLocalConfiguration();
}
@Property
public WebPropertyInfo[] getProperties() throws DBWebException {
boolean hasContextCredentials = webSession.hasContextCredentials();