From d3dc26181e3f7e60ff272ce8cf856b487497f9a3 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Wed, 30 Aug 2017 08:00:22 +0200 Subject: [PATCH] KEYCLOAK-3481 (#4441) --- .../idm/PublishedRealmRepresentation.java | 11 ----------- .../services/resources/PublicRealmResource.java | 1 - 2 files changed, 12 deletions(-) diff --git a/core/src/main/java/org/keycloak/representations/idm/PublishedRealmRepresentation.java b/core/src/main/java/org/keycloak/representations/idm/PublishedRealmRepresentation.java index eceb7592fc..ea11f4f14d 100755 --- a/core/src/main/java/org/keycloak/representations/idm/PublishedRealmRepresentation.java +++ b/core/src/main/java/org/keycloak/representations/idm/PublishedRealmRepresentation.java @@ -39,9 +39,6 @@ public class PublishedRealmRepresentation { @JsonProperty("account-service") protected String accountServiceUrl; - @JsonProperty("admin-api") - protected String adminApiUrl; - @JsonProperty("tokens-not-before") protected int notBefore; @@ -101,14 +98,6 @@ public class PublishedRealmRepresentation { this.accountServiceUrl = accountServiceUrl; } - public String getAdminApiUrl() { - return adminApiUrl; - } - - public void setAdminApiUrl(String adminApiUrl) { - this.adminApiUrl = adminApiUrl; - } - public int getNotBefore() { return notBefore; } diff --git a/services/src/main/java/org/keycloak/services/resources/PublicRealmResource.java b/services/src/main/java/org/keycloak/services/resources/PublicRealmResource.java index 2890229220..0bacdbb23b 100755 --- a/services/src/main/java/org/keycloak/services/resources/PublicRealmResource.java +++ b/services/src/main/java/org/keycloak/services/resources/PublicRealmResource.java @@ -93,7 +93,6 @@ public class PublicRealmResource { rep.setRealm(realm.getName()); rep.setTokenServiceUrl(OIDCLoginProtocolService.tokenServiceBaseUrl(uriInfo).build(realm.getName()).toString()); rep.setAccountServiceUrl(AccountFormService.accountServiceBaseUrl(uriInfo).build(realm.getName()).toString()); - rep.setAdminApiUrl(uriInfo.getBaseUriBuilder().path(AdminRoot.class).build().toString()); rep.setPublicKeyPem(PemUtils.encodeKey(session.keys().getActiveRsaKey(realm).getPublicKey())); rep.setNotBefore(realm.getNotBefore()); return rep;