aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'admin/resources/partials/user-consents.html')
-rw-r--r--admin/resources/partials/user-consents.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/admin/resources/partials/user-consents.html b/admin/resources/partials/user-consents.html
new file mode 100644
index 0000000..76eb0a8
--- /dev/null
+++ b/admin/resources/partials/user-consents.html
@@ -0,0 +1,41 @@
+<div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
+ <ol class="breadcrumb">
+ <li><a href="#/realms/{{realm.realm}}/users">{{:: 'users' | translate}}</a></li>
+ <li>{{user.username}}</li>
+ </ol>
+
+ <kc-tabs-user></kc-tabs-user>
+
+ <table class="table table-striped table-bordered">
+ <thead>
+ <tr>
+ <th>{{:: 'client' | translate}}</th>
+ <th>{{:: 'granted-client-scopes' | translate}}</th>
+ <th>{{:: 'additional-grants' | translate}}</th>
+ <th>{{:: 'consent-created-date' | translate}}</th>
+ <th>{{:: 'consent-last-updated-date' | translate}}</th>
+ <th>{{:: 'action' | translate}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr data-ng-repeat="consent in userConsents">
+ <td>{{consent.clientId}}</td>
+ <td>
+ <span data-ng-repeat="clientScope in consent.grantedClientScopes">
+ <span ng-if="!$first">, </span>{{clientScope}}
+ </span>
+ </td>
+ <td>
+ <span data-ng-repeat="additionalGrant in consent.additionalGrants">
+ <span ng-if="!$first">, </span><a href="#/realms/{{realm.realm}}/users/{{user.id}}/offline-sessions/{{additionalGrant.client}}">{{additionalGrant.key}}</a>
+ </span>
+ </td>
+ <td>{{consent.createdDate | date :'short'}}</td>
+ <td>{{consent.lastUpdatedDate | date :'short'}}</td>
+ <td class="kc-action-cell" ng-click="revokeConsent(consent.clientId)">{{:: 'revoke' | translate}}</td>
+ </tr>
+ </tbody>
+ </table>
+</div>
+
+<kc-menu></kc-menu> \ No newline at end of file