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