realm-keys.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!--
  2. ~ Copyright 2016 Red Hat, Inc. and/or its affiliates
  3. ~ and other contributors as indicated by the @author tags.
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. -->
  17. <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
  18. <kc-tabs-realm></kc-tabs-realm>
  19. <ul class="nav nav-tabs nav-tabs-pf">
  20. <li class="active"><a href="#/realms/{{realm.realm}}/keys">{{:: 'active' | translate}}</a></li>
  21. <li><a href="#/realms/{{realm.realm}}/keys/passive">{{:: 'passive' | translate}}</a></li>
  22. <li><a href="#/realms/{{realm.realm}}/keys/disabled">{{:: 'disabled' | translate}}</a></li>
  23. <li><a href="#/realms/{{realm.realm}}/keys/providers">{{:: 'providers' | translate}}</a></li>
  24. </ul>
  25. <table class="table table-striped table-bordered">
  26. <thead>
  27. <tr>
  28. <th class="kc-table-actions" colspan="8">
  29. <div class="form-inline">
  30. <div class="form-group">
  31. <div class="input-group">
  32. <input type="text" placeholder="{{:: 'search.placeholder' | translate}}" data-ng-model="search" class="form-control search"">
  33. <div class="input-group-addon">
  34. <i class="fa fa-search"></i>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. </th>
  40. </tr>
  41. <tr>
  42. <th>{{:: 'algorithm' | translate}}</th>
  43. <th>{{:: 'type' | translate}}</th>
  44. <th>{{:: 'kid' | translate}}</th>
  45. <th>{{:: 'use' | translate}}</th>
  46. <th>{{:: 'priority' | translate}}</th>
  47. <th>{{:: 'provider' | translate}}</th>
  48. <th colspan="2">{{:: 'publicKeys' | translate}}</th>
  49. </tr>
  50. </thead>
  51. <tbody>
  52. <tr ng-repeat="key in keys | filter:search | filter:{status:'ACTIVE'}">
  53. <td>{{key.algorithm}}</td>
  54. <td>{{key.type}}</td>
  55. <td>{{key.kid}}</td>
  56. <td>{{key.use}}</td>
  57. <td>{{key.providerPriority}}</td>
  58. <td><a href="#/realms/{{realm.realm}}/keys/providers/{{key.provider.providerId}}/{{key.provider.id}}">{{key.provider.name}}</a></td>
  59. <td data-ng-show="!key.publicKey" colspan="2"></td>
  60. <td class="kc-action-cell" data-ng-show="key.publicKey" class="kc-action-cell" data-ng-click="viewKey(key.publicKey)" colspan="{{key.certificate ? 1 : 2}}">{{:: 'publicKey' | translate}}</td>
  61. <td data-ng-show="key.certificate" class="kc-action-cell" data-ng-click="viewKey(key.certificate)">{{:: 'certificate' | translate}}</td>
  62. </tr>
  63. </tbody>
  64. </table>
  65. </div>
  66. <kc-menu></kc-menu>