From 1ceee853f9d59ee11ed0b5210573e6953dc20153 Mon Sep 17 00:00:00 2001 From: Justin Richer Date: Thu, 31 Jan 2013 15:15:10 -0500 Subject: [PATCH] scope management UI --- .../src/main/webapp/resources/js/admin.js | 9 +++++++ .../main/webapp/resources/template/admin.html | 27 +++++++++++++++++++ 2 files changed, 36 insertions(+) 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 c6dedda92..36c552037 100644 --- a/openid-connect-server/src/main/webapp/resources/js/admin.js +++ b/openid-connect-server/src/main/webapp/resources/js/admin.js @@ -222,6 +222,15 @@ return new SystemScopeCollection(filtered); }, + getByValue: function(value) { + var scopes = this.where({value: scope}); + if (scopes.length == 1) { + return scopes[0]; + } else { + return null; + } + } + }); var ClientModel = Backbone.Model.extend({ 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 b457fb9c3..1cdef1a97 100644 --- a/openid-connect-server/src/main/webapp/resources/template/admin.html +++ b/openid-connect-server/src/main/webapp/resources/template/admin.html @@ -531,4 +531,31 @@ + + + + \ No newline at end of file