resource-server-detail.html 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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}}/clients">{{:: 'clients' | translate}}</a></li>
  4. <li><a href="#/realms/{{realm.realm}}/clients/{{client.id}}">{{client.clientId}}</a></li>
  5. <li><a href="#/realms/{{realm.realm}}/clients/{{client.id}}/authz/resource-server">{{:: 'authz-authorization' | translate}}</a></li>
  6. <li><a href="#/realms/{{realm.realm}}/clients/{{client.id}}/authz/resource-server">{{:: 'settings' | translate}}</a></li>
  7. </ol>
  8. <kc-tabs-resource-server></kc-tabs-resource-server>
  9. <form class="form-horizontal" name="clientForm" novalidate>
  10. <fieldset>
  11. <div class="form-group">
  12. <label for="import-file" class="col-sm-2 control-label">{{:: 'import' | translate}}</label>
  13. <div class="col-md-6">
  14. <div class="controls kc-button-input-file" data-ng-show="!importing">
  15. <label for="import-file" class="btn btn-default">{{:: 'select-file' | translate}} <i class="pficon pficon-import"></i></label>
  16. <input id="import-file" type="file" class="hidden" kc-on-read-file="onFileSelect($fileContent)">
  17. </div>
  18. <div class="col-md-6" data-ng-show="importing">
  19. <input type="button" class="btn btn-default" data-ng-click="viewImportDetails()" value="{{:: 'view-details' | translate}}"/>
  20. </div>
  21. </div>
  22. <kc-tooltip>{{:: 'authz-import-config.tooltip' | translate}}</kc-tooltip>
  23. </div>
  24. <div class="form-group">
  25. <div class="col-md-10 col-md-offset-2" data-ng-show="importing">
  26. <button class="btn btn-default" data-ng-click="import()" data-ng-disabled="!changed">Import</button>
  27. <button kc-cancel data-ng-click="reset()">Cancel</button>
  28. </div>
  29. </div>
  30. </fieldset>
  31. <fieldset class="border-top" data-ng-hide="importing">
  32. <div class="form-group">
  33. <label class="col-md-2 control-label" for="server.policyEnforcementMode">{{:: 'authz-policy-enforcement-mode' | translate}}</label>
  34. <div class="col-md-2">
  35. <select class="form-control" id="server.policyEnforcementMode" data-ng-model="server.policyEnforcementMode">
  36. <option value="ENFORCING">{{:: 'authz-policy-enforcement-mode-enforcing' | translate}}</option>
  37. <option value="PERMISSIVE">{{:: 'authz-policy-enforcement-mode-permissive' | translate}}</option>
  38. <option value="DISABLED">{{:: 'authz-policy-enforcement-mode-disabled' | translate}}</option>
  39. </select>
  40. </div>
  41. <kc-tooltip>{{:: 'authz-policy-enforcement-mode.tooltip' | translate}}</kc-tooltip>
  42. </div>
  43. <div class="form-group clearfix">
  44. <label class="col-md-2 control-label" for="server.decisionStrategy">{{:: 'authz-policy-decision-strategy' | translate}}</label>
  45. <div class="col-sm-2">
  46. <select class="form-control" id="server.decisionStrategy"
  47. data-ng-model="server.decisionStrategy"
  48. ng-change="selectDecisionStrategy()">
  49. <option value="UNANIMOUS">{{:: 'authz-policy-decision-strategy-unanimous' | translate}}</option>
  50. <option value="AFFIRMATIVE">{{:: 'authz-policy-decision-strategy-affirmative' | translate}}</option>
  51. </select>
  52. </div>
  53. <kc-tooltip>{{:: 'authz-server-decision-strategy.tooltip' | translate}}</kc-tooltip>
  54. </div>
  55. <div class="form-group">
  56. <label class="col-md-2 control-label" for="server.allowRemoteResourceManagement">{{:: 'authz-remote-resource-management' | translate}}</label>
  57. <div class="col-md-6">
  58. <input ng-model="server.allowRemoteResourceManagement" id="server.allowRemoteResourceManagement" onoffswitch />
  59. </div>
  60. <kc-tooltip>{{:: 'authz-remote-resource-management.tooltip' | translate}}</kc-tooltip>
  61. </div>
  62. <div class="form-group" data-ng-show="access.manageAuthorization">
  63. <div class="col-md-10 col-md-offset-2">
  64. <button kc-save data-ng-disabled="!changed">{{:: 'save' | translate}}</button>
  65. <button kc-reset data-ng-disabled="!changed">{{:: 'cancel' | translate}}</button>
  66. </div>
  67. </div>
  68. </fieldset>
  69. </form>
  70. </div>
  71. <kc-menu></kc-menu>