client-oidc-key-import.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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}}/oidc/keys">{{:: 'keys' | translate}}</a></li>
  6. <li class="active">{{:: 'client-certificate-import' | translate}}</li>
  7. </ol>
  8. <h1>{{:: 'import-client-certificate' | translate}}</h1>
  9. <form class="form-horizontal" name="keyForm" novalidate kc-read-only="!client.access.configure">
  10. <fieldset>
  11. <div class="form-group">
  12. <label class="col-md-2 control-label" for="uploadKeyFormat">{{:: 'archive-format' | translate}}</label>
  13. <div class="col-sm-6">
  14. <div>
  15. <select class="form-control" id="uploadKeyFormat"
  16. ng-model="uploadKeyFormat"
  17. ng-options="f for f in keyFormats">
  18. </select>
  19. </div>
  20. </div>
  21. <kc-tooltip>{{:: 'archive-format.tooltip' | translate}}</kc-tooltip>
  22. </div>
  23. <div class="form-group" data-ng-hide="hideKeystoreSettings()">
  24. <label class="col-md-2 control-label" for="uploadKeyAlias">{{:: 'key-alias' | translate}}</label>
  25. <div class="col-md-6">
  26. <input class="form-control" type="text" id="uploadKeyAlias" name="uploadKeyAlias" data-ng-model="uploadKeyAlias" autofocus required>
  27. </div>
  28. <kc-tooltip>{{:: 'jwt-import.key-alias.tooltip' | translate}}</kc-tooltip>
  29. </div>
  30. <div class="form-group" data-ng-hide="hideKeystoreSettings()">
  31. <label class="col-md-2 control-label" for="uploadStorePas">{{:: 'store-password' | translate}}</label>
  32. <div class="col-md-6">
  33. <input class="form-control" kc-password id="uploadStorePas" name="uploadStorePas" data-ng-model="uploadStorePassword" autofocus required>
  34. </div>
  35. <kc-tooltip>{{:: 'store-password.tooltip' | translate}}</kc-tooltip>
  36. </div>
  37. <div class="form-group">
  38. <label class="col-md-2 control-label">{{:: 'import-file' | translate}} </label>
  39. <div class="col-md-6">
  40. <div class="controls kc-button-input-file" data-ng-show="!files || files.length == 0">
  41. <label for="import-file" class="btn btn-default">{{:: 'select-file' | translate}} <i class="pficon pficon-import"></i></label>
  42. <input id="import-file" type="file" class="hidden" ng-file-select="onFileSelect($files)">
  43. </div>
  44. <span class="kc-uploaded-file" data-ng-show="files.length > 0">
  45. {{files[0].name}}
  46. </span>
  47. </div>
  48. </div>
  49. <div class="form-group">
  50. <div class="col-md-10 col-md-offset-2">
  51. <button type="submit" data-ng-click="uploadFile()" data-ng-disabled="files.length == 0" class="btn btn-primary">{{:: 'import' | translate}}</button>
  52. <button type="submit" data-ng-click="cancel()" class="btn btn-default">{{:: 'cancel' | translate}}</button>
  53. </div>
  54. </div>
  55. </fieldset>
  56. </form>
  57. </div>
  58. <kc-menu></kc-menu>