From 51973ea59503fbb5261854919d23b4a3d3b18a9f Mon Sep 17 00:00:00 2001 From: Justin Richer Date: Wed, 28 Aug 2013 14:17:30 -0400 Subject: [PATCH] added dev page for self-service client registration --- .../main/webapp/WEB-INF/tags/actionmenu.tag | 2 + .../src/main/webapp/WEB-INF/tags/footer.tag | 1 + .../src/main/webapp/resources/js/admin.js | 13 +++++++ .../src/main/webapp/resources/js/dynreg.js | 0 .../webapp/resources/template/dynreg.html | 38 +++++++++++++++++++ 5 files changed, 54 insertions(+) create mode 100644 openid-connect-server/src/main/webapp/resources/js/dynreg.js create mode 100644 openid-connect-server/src/main/webapp/resources/template/dynreg.html diff --git a/openid-connect-server/src/main/webapp/WEB-INF/tags/actionmenu.tag b/openid-connect-server/src/main/webapp/WEB-INF/tags/actionmenu.tag index 5848524e3..897e7d924 100644 --- a/openid-connect-server/src/main/webapp/WEB-INF/tags/actionmenu.tag +++ b/openid-connect-server/src/main/webapp/WEB-INF/tags/actionmenu.tag @@ -13,3 +13,5 @@
  • Manage Sites
  • Manage Active Tokens
  • Manage Profiles
  • + +
  • Self-service client registration
  • \ No newline at end of file diff --git a/openid-connect-server/src/main/webapp/WEB-INF/tags/footer.tag b/openid-connect-server/src/main/webapp/WEB-INF/tags/footer.tag index 24dda534e..b9aa26b42 100644 --- a/openid-connect-server/src/main/webapp/WEB-INF/tags/footer.tag +++ b/openid-connect-server/src/main/webapp/WEB-INF/tags/footer.tag @@ -26,6 +26,7 @@ + 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 93fe021bb..a8056eb4e 100644 --- a/openid-connect-server/src/main/webapp/resources/js/admin.js +++ b/openid-connect-server/src/main/webapp/resources/js/admin.js @@ -331,6 +331,8 @@ var AppRouter = Backbone.Router.extend({ "user/tokens":"notImplemented", "user/profile":"notImplemented", + "dev/dynreg":"dynReg", + "": "root" }, @@ -634,6 +636,16 @@ var AppRouter = Backbone.Router.extend({ $('#content').html(this.systemScopeFormView.render().el); setPageTitle("Edit System Scope"); + }, + + dynReg:function() { + this.breadCrumbView.collection.reset(); + this.breadCrumbView.collection.add([ + {text:"Home", href:""}, + {text:"Client Registration", href:"manage/#dev/dynreg"} + ]); + $('#content').html($('#tmpl-dynreg').html()); + setPageTitle("Self-service Client Registration"); } @@ -658,6 +670,7 @@ $(function () { $.get('resources/template/grant.html', _load); $.get('resources/template/scope.html', _load); $.get('resources/template/whitelist.html', _load); + $.get('resources/template/dynreg.html', _load); jQuery.ajaxSetup({async:true}); app = new AppRouter(); diff --git a/openid-connect-server/src/main/webapp/resources/js/dynreg.js b/openid-connect-server/src/main/webapp/resources/js/dynreg.js new file mode 100644 index 000000000..e69de29bb diff --git a/openid-connect-server/src/main/webapp/resources/template/dynreg.html b/openid-connect-server/src/main/webapp/resources/template/dynreg.html new file mode 100644 index 000000000..46cbce4a2 --- /dev/null +++ b/openid-connect-server/src/main/webapp/resources/template/dynreg.html @@ -0,0 +1,38 @@ + + + + \ No newline at end of file