This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/master by this push:
     new 6e749c3551 [SYNCOPE-1702] Including specific instructions for 
Keymaster setup
6e749c3551 is described below

commit 6e749c35513ce12f72a5953dc84f6be65acfab35
Author: Francesco Chicchiriccò <ilgro...@apache.org>
AuthorDate: Sat Oct 22 09:38:17 2022 +0200

    [SYNCOPE-1702] Including specific instructions for Keymaster setup
---
 .../syncope/client/enduser/panels/ResultPanel.java      | 14 +++++---------
 .../reference-guide/configuration/deployment.adoc       | 17 +++++++++++++++++
 2 files changed, 22 insertions(+), 9 deletions(-)

diff --git 
a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/ResultPanel.java
 
b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/ResultPanel.java
index 88fb13d724..da83052e59 100644
--- 
a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/ResultPanel.java
+++ 
b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/ResultPanel.java
@@ -43,6 +43,7 @@ public class ResultPanel extends AbstractResultPanel<String, 
Serializable> {
         this.pageRef = pageRef;
     }
 
+    @SuppressWarnings("unchecked")
     @Override
     protected Panel customResultBody(final String panelId, final String item, 
final Serializable errorBeans) {
         return new SimpleListViewPanel.Builder<>(StatusBean.class, pageRef) {
@@ -51,15 +52,10 @@ public class ResultPanel extends 
AbstractResultPanel<String, Serializable> {
 
             @Override
             protected Component getValueComponent(final String key, final 
StatusBean bean) {
-                if ("status".equalsIgnoreCase(key)) {
-                    return StatusUtils.getWarningStatusPanel("field");
-                } else {
-                    return super.getValueComponent(key, bean);
-                }
+                return "status".equalsIgnoreCase(key)
+                        ? StatusUtils.getWarningStatusPanel("field")
+                        : super.getValueComponent(key, bean);
             }
-        }.setItems((ArrayList<StatusBean>) errorBeans)
-                .includes("resource", "status")
-                .build(panelId);
+        }.setItems((ArrayList<StatusBean>) errorBeans).includes("resource", 
"status").build(panelId);
     }
-
 }
diff --git a/src/main/asciidoc/reference-guide/configuration/deployment.adoc 
b/src/main/asciidoc/reference-guide/configuration/deployment.adoc
index 86afbdeb49..7b52ced2c2 100644
--- a/src/main/asciidoc/reference-guide/configuration/deployment.adoc
+++ b/src/main/asciidoc/reference-guide/configuration/deployment.adoc
@@ -27,6 +27,23 @@ The only exception is <<secure-remote-access>> that, being 
based on Spring Cloud
 
https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html[Spring
 WebFlux^] and
 https://projectreactor.io/docs[Project Reactor^], is only available as 
standalone application.
 
+[CAUTION]
+====
+For all components, please ensure to reference the proper <<keymaster>> 
instance by including the following properties:
+
+[source,bash]
+----
+keymaster.address=<KEYMASTER_ADDRESS>
+keymaster.username=${anonymousUser}
+keymaster.password=${anonymousKey}
+----
+
+where `<KEYMASTER_ADDRESS>` can be either:
+
+* `protocol://host:port/syncope/rest/keymaster` pointing to the <<core>> 
instance, in case of _Self Keymaster_;
+* `host:port` (typically `host:2181`) in case Apache Zookeeper is used.
+====
+
 ==== Standalone
 
 Projects generated from Maven archetype feature a dedicated `executable` 
profile, which will re-package all

Reply via email to