diff --git a/openid-connect-server/src/main/webapp/resources/js/admin.js b/openid-connect-server/src/main/webapp/resources/js/admin.js index 5af2dc0c8..99070784d 100644 --- a/openid-connect-server/src/main/webapp/resources/js/admin.js +++ b/openid-connect-server/src/main/webapp/resources/js/admin.js @@ -673,7 +673,13 @@ var client = app.clientList.getByClientId(approvedSite.get('clientId')); if (client != null) { - $('#grant-table', this.el).append(new ApprovedSiteView({model: approvedSite, client: client}).render().el); + + if (approvedSite.get('whitelistedSite') != null) { + $('#grant-whitelist-table', this.el).append(new ApprovedSiteView({model: approvedSite, client: client}).render().el); + } else { + $('#grant-table', this.el).append(new ApprovedSiteView({model: approvedSite, client: client}).render().el); + } + } }, this); diff --git a/openid-connect-server/src/main/webapp/resources/template/admin.html b/openid-connect-server/src/main/webapp/resources/template/admin.html index 782beb537..83076702a 100644 --- a/openid-connect-server/src/main/webapp/resources/template/admin.html +++ b/openid-connect-server/src/main/webapp/resources/template/admin.html @@ -373,12 +373,14 @@