user-consents.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
  2. <ol class="breadcrumb">
  3. <li><a href="#/realms/{{realm.realm}}/users">{{:: 'users' | translate}}</a></li>
  4. <li>{{user.username}}</li>
  5. </ol>
  6. <kc-tabs-user></kc-tabs-user>
  7. <table class="table table-striped table-bordered">
  8. <thead>
  9. <tr>
  10. <th>{{:: 'client' | translate}}</th>
  11. <th>{{:: 'granted-client-scopes' | translate}}</th>
  12. <th>{{:: 'additional-grants' | translate}}</th>
  13. <th>{{:: 'consent-created-date' | translate}}</th>
  14. <th>{{:: 'consent-last-updated-date' | translate}}</th>
  15. <th>{{:: 'action' | translate}}</th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. <tr data-ng-repeat="consent in userConsents">
  20. <td>{{consent.clientId}}</td>
  21. <td>
  22. <span data-ng-repeat="clientScope in consent.grantedClientScopes">
  23. <span ng-if="!$first">, </span>{{clientScope}}
  24. </span>
  25. </td>
  26. <td>
  27. <span data-ng-repeat="additionalGrant in consent.additionalGrants">
  28. <span ng-if="!$first">, </span><a href="#/realms/{{realm.realm}}/users/{{user.id}}/offline-sessions/{{additionalGrant.client}}">{{additionalGrant.key}}</a>
  29. </span>
  30. </td>
  31. <td>{{consent.createdDate | date :'short'}}</td>
  32. <td>{{consent.lastUpdatedDate | date :'short'}}</td>
  33. <td class="kc-action-cell" ng-click="revokeConsent(consent.clientId)">{{:: 'revoke' | translate}}</td>
  34. </tr>
  35. </tbody>
  36. </table>
  37. </div>
  38. <kc-menu></kc-menu>