Browse Source

added simple display for required claims into resource set display

pull/708/merge
Justin Richer 10 years ago
parent
commit
c63651626f
  1. 3
      openid-connect-server-webapp/src/main/webapp/resources/js/locale/en/messages.json
  2. 11
      openid-connect-server-webapp/src/main/webapp/resources/template/policy.html

3
openid-connect-server-webapp/src/main/webapp/resources/js/locale/en/messages.json

@ -350,6 +350,9 @@
"no-resource-sets": "There are no resource sets registered. Introduce a protected to this authorization server to let it register some.",
"no-required-claims": "There are no required claims for this resource set: This resource set is inaccessible by others.",
"share-email": "Share with email address",
"shared-with": "Shared with:",
"shared-nobody": "NOBODY",
"shared-nobody-tooltip": "This resource is not accessible by anyone else, edit the policies and share it with someone.",
"issuers": "Issuers",
"claim": "Claim",
"value": "Value"

11
openid-connect-server-webapp/src/main/webapp/resources/template/policy.html

@ -47,6 +47,17 @@
<span title="<%- client.clientId %>"><%- client.clientName != null ? client.clientName : ( client.clientId.substr(0,8) + '...' ) %></span>
<div class="client-more-info-block"></div>
<div class="scope-list"></div>
<div><span class="text-warning" data-i18n="policy.policy-table.shared-with"><i class="icon-share"></i> Shared with:</span>
<% if (!_.isEmpty(rs.claimsRequired)) {
_.each(rs.claimsRequired, function(claim) { %>
<span class="label label-info"><%- claim.value %></span>
<% });
} else { %>
<span class="label label-important" data-i18n="policy.policy-table.shared-nobody;[title]policy.policy-table.shared-nobody-tooltip" title="This resource is not accessible by anyone else, edit the policies and share it with someone.">NOBODY</span>
<% } %>
</div>
</td>
<td>

Loading…
Cancel
Save