You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2023/05/03 14:12:05 UTC
[airavata-data-catalog] 04/09: Make usePlainText a property
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch custos-integration
in repository https://gitbox.apache.org/repos/asf/airavata-data-catalog.git
commit e7570f290094f0d79e7cb6cda8d753a8f81ced5a
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Wed May 3 09:35:34 2023 -0400
Make usePlainText a property
---
.../apache/airavata/datacatalog/api/sharing/SharingManagerImpl.java | 6 +++++-
.../server/service/src/main/resources/application.properties | 5 +++--
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/data-catalog-api/server/custos-sharing/src/main/java/org/apache/airavata/datacatalog/api/sharing/SharingManagerImpl.java b/data-catalog-api/server/custos-sharing/src/main/java/org/apache/airavata/datacatalog/api/sharing/SharingManagerImpl.java
index d576560..9bd3f18 100644
--- a/data-catalog-api/server/custos-sharing/src/main/java/org/apache/airavata/datacatalog/api/sharing/SharingManagerImpl.java
+++ b/data-catalog-api/server/custos-sharing/src/main/java/org/apache/airavata/datacatalog/api/sharing/SharingManagerImpl.java
@@ -63,6 +63,8 @@ public class SharingManagerImpl implements SharingManager {
String clientId;
@Value("${identity.server.clientSec}")
String clientSec;
+ @Value("${identity.server.usePlainText:false}")
+ boolean usePlainText;
@PostConstruct
public void initializeTenants() throws SharingException {
@@ -78,7 +80,9 @@ public class SharingManagerImpl implements SharingManager {
.setServerHost(hostname)
.setServerPort(port)
.setClientId(clientId)
- .setClientSec(clientSec).build();
+ .setClientSec(clientSec)
+ .usePlainText(usePlainText)
+ .build();
}
diff --git a/data-catalog-api/server/service/src/main/resources/application.properties b/data-catalog-api/server/service/src/main/resources/application.properties
index d56da73..9495cd5 100644
--- a/data-catalog-api/server/service/src/main/resources/application.properties
+++ b/data-catalog-api/server/service/src/main/resources/application.properties
@@ -17,7 +17,8 @@ sharing.manager.class.name=org.apache.airavata.datacatalog.api.sharing.SimpleSha
## Custos Sharing
# sharing.manager.class.name=org.apache.airavata.datacatalog.api.sharing.SharingManagerImpl
-# identity.server.hostname=
-# identity.server.port=0
+# identity.server.hostname=localhost
+# identity.server.port=7000
# identity.server.clientId=
# identity.server.clientSec=
+# identity.server.usePlainText=true