Skip to content

Commit

Permalink
Remove public key as it is not required
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 committed Jul 25, 2022
1 parent bdeb887 commit 8c4854f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public class PF4FreemarkerServlet extends freemarker.ext.servlet.FreemarkerServl
{
public static final String USER_PRINCIPAL = "userPrincipal";
public static final String KEYCLOAK = "keycloak";
public static final String PUBLIC_KEY = "publicKey";
public static final String SERVER_URL = "serverUrl";
public static final String REALM = "realm";
public static final String SSL_REQUIRED = "sslRequired";
Expand Down Expand Up @@ -84,7 +83,6 @@ public Object exec(List arguments) throws TemplateModelException
hashModel.put(UI_SSO_ENABLED, String.valueOf(System.getProperty("keycloak.server.url") != null));

Map<String, String> keycloakProperties = new HashMap<>();
keycloakProperties.put(PUBLIC_KEY, System.getProperty("keycloak.realm.public.key", "***"));
keycloakProperties.put(SERVER_URL, System.getProperty("keycloak.server.url", "***"));
keycloakProperties.put(REALM, System.getProperty("keycloak.realm", "***"));
keycloakProperties.put(SSL_REQUIRED, System.getProperty("keycloak.sslRequired", "***").toLowerCase());
Expand Down
4 changes: 2 additions & 2 deletions ui-pf4/src/main/webapp/public/keycloak.json.ftl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"realm": "${keycloak.realm}",
"realm-public-key": "${keycloak.publicKey}",
"auth-server-url": "${keycloak.serverUrl}",
"ssl-required": "${keycloak.sslRequired}",
"resource": "${keycloak.clientId}",
"public-client": true
"public-client": true,
"confidential-port": 0
}

0 comments on commit 8c4854f

Please sign in to comment.