KEYCLOAK-3481 (#4441)

This commit is contained in:
Stian Thorgersen 2017-08-30 08:00:22 +02:00 committed by GitHub
parent 433a8dd2e3
commit d3dc26181e
2 changed files with 0 additions and 12 deletions

View file

@ -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;
}

View file

@ -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;