client-saml-keys.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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>{{client.clientId}}</li>
  5. </ol>
  6. <kc-tabs-client></kc-tabs-client>
  7. <form class="form-horizontal" name="keyForm" novalidate kc-read-only="!client.access.configure">
  8. <fieldset class="form-group col-sm-10" data-ng-show="client.attributes['saml.client.signature'] == 'true'">
  9. <legend uncollapsed><span class="text">{{:: 'signing-key' | translate}}</span> <kc-tooltip>{{:: 'saml-signing-key' | translate}}</kc-tooltip></legend>
  10. <div class="form-group" data-ng-hide="!signingKeyInfo.privateKey">
  11. <label class="col-md-2 control-label" for="signingPrivateKey">{{:: 'private-key' | translate}}</label>
  12. <div class="col-sm-10">
  13. <textarea type="text" id="signingPrivateKey" name="signingPrivateKey" class="form-control" rows="5"
  14. kc-select-action="click" readonly>{{signingKeyInfo.privateKey}}</textarea>
  15. </div>
  16. </div>
  17. <div class="form-group" data-ng-hide="!signingKeyInfo.certificate">
  18. <label class="col-md-2 control-label" for="signingCert">{{:: 'certificate' | translate}}</label>
  19. <div class="col-sm-10">
  20. <textarea type="text" id="signingCert" name="signingCert" class="form-control" rows="5"
  21. kc-select-action="click" readonly>{{signingKeyInfo.certificate}}</textarea>
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <div class="col-md-10 col-md-offset-2" data-ng-show="client.access.configure">
  26. <button class="btn btn-default" type="submit" data-ng-click="generateSigningKey()">{{:: 'generate-new-keys' | translate}}</button>
  27. <button class="btn btn-default" type="submit" data-ng-click="importSigningKey()">{{:: 'import' | translate}}</button>
  28. <button class="btn btn-default" type="submit" data-ng-hide="!signingKeyInfo.certificate" data-ng-click="exportSigningKey()">{{:: 'export' | translate}}</button>
  29. </div>
  30. </div>
  31. </fieldset>
  32. <fieldset class="form-group col-sm-10" data-ng-show="client.attributes['saml.encrypt'] == 'true'">
  33. <legend uncollapsed><span class="text">{{:: 'encryption-key' | translate}}</span> <kc-tooltip>{{:: 'saml-encryption-key.tooltip' | translate}}</kc-tooltip></legend>
  34. <div class="form-group" data-ng-hide="!encryptionKeyInfo.privateKey">
  35. <label class="col-md-2 control-label" for="encryptionPrivateKey">{{:: 'private-key' | translate}}</label>
  36. <div class="col-sm-10">
  37. <textarea type="text" id="encryptionPrivateKey" name="encryptionPrivateKey" class="form-control" rows="5"
  38. kc-select-action="click" readonly>{{encryptionKeyInfo.privateKey}}</textarea>
  39. </div>
  40. </div>
  41. <div class="form-group" data-ng-hide="!encryptionKeyInfo.certificate">
  42. <label class="col-md-2 control-label" for="encryptionCert">{{:: 'certificate' | translate}}</label>
  43. <div class="col-sm-10">
  44. <textarea type="text" id="encryptionCert" name="encryptionCert" class="form-control" rows="5"
  45. kc-select-action="click" readonly>{{encryptionKeyInfo.certificate}}</textarea>
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <div class="col-md-10 col-md-offset-2" data-ng-show="client.access.configure">
  50. <button class="btn btn-default" type="submit" data-ng-click="generateEncryptionKey()">{{:: 'generate-new-keys' | translate}}</button>
  51. <button class="btn btn-default" type="submit" data-ng-click="importEncryptionKey()">{{:: 'import' | translate}}</button>
  52. <button class="btn btn-default" type="submit" data-ng-hide="!encryptionKeyInfo.certificate" data-ng-click="exportEncryptionKey()">{{:: 'export' | translate}}</button>
  53. </div>
  54. </div>
  55. </fieldset>
  56. </form>
  57. </div>
  58. <kc-menu></kc-menu>