123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <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}}/clients">{{:: 'clients' | translate}}</a></li>
- <li>{{client.clientId}}</li>
- </ol>
- <kc-tabs-client></kc-tabs-client>
- <form class="form-horizontal" name="keyForm" novalidate kc-read-only="!client.access.configure">
- <div class="form-group">
- <label class="col-md-2 control-label" for="useJwksUrl">{{:: 'use-jwks-url' | translate}}</label>
- <div class="col-sm-6">
- <input ng-model="useJwksUrl" name="useJwksUrl" id="useJwksUrl" ng-click="jwksUrlSwitchChange()" onoffswitch
- on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
- </div>
- <kc-tooltip>{{:: 'use-jwks-url.tooltip' | translate}}</kc-tooltip>
- </div>
- <div class="form-group" data-ng-show="useJwksUrl">
- <label class="col-md-2 control-label" for="jwksUrl">{{:: 'jwks-url' | translate}}</label>
- <div class="col-sm-6">
- <input class="form-control" type="text" name="jwksUrl" id="jwksUrl"
- data-ng-model="client.attributes['jwks.url']">
- </div>
- <kc-tooltip>{{:: 'jwks-url.tooltip' | translate}}</kc-tooltip>
- </div>
- <div class="form-group">
- <label class="col-md-2 control-label" for="useJwksString">{{:: 'use-jwks-string' | translate}}</label>
- <div class="col-sm-6">
- <input ng-model="useJwksString" name="useJwksString" id="useJwksString" ng-click="jwksStringSwitchChange()"
- onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
- </div>
- <kc-tooltip>{{:: 'use-jwks-string.tooltip' | translate}}</kc-tooltip>
- </div>
- <div class="form-group" data-ng-show="useJwksString">
- <label class="col-md-2 control-label" for="jwksString">{{:: 'jwks-string' | translate}}</label>
- <div class="col-sm-10">
- <textarea type="text" id="jwksString" name="jwksString" class="form-control" rows="5" kc-select-action="click"
- data-ng-model="client.attributes['jwks.string']"></textarea>
- </div>
- <kc-tooltip>{{:: 'jwks-string.tooltip' | translate}}</kc-tooltip>
- </div>
- <div data-ng-show="!useJwksUrl && !useJwksString">
- <div class="form-group" data-ng-show="signingKeyInfo.certificate">
- <label class="col-md-2 control-label" for="signingCert">{{:: 'certificate' | translate}}</label>
- <kc-tooltip>{{:: 'certificate.tooltip' | translate}}</kc-tooltip>
- <div class="col-sm-10" data-ng-show="signingKeyInfo.certificate">
- <textarea type="text" id="signingCert" name="signingCert" class="form-control" rows="5"
- kc-select-action="click" readonly>{{signingKeyInfo.certificate}}</textarea>
- </div>
- </div>
- <div class="form-group" data-ng-show="signingKeyInfo.publicKey">
- <label class="col-md-2 control-label" for="publicKey">{{:: 'publicKey' | translate}}</label>
- <kc-tooltip>{{:: 'publicKey.tooltip' | translate}}</kc-tooltip>
- <div class="col-sm-10" data-ng-show="signingKeyInfo.publicKey">
- <textarea type="text" id="publicKey" name="publicKey" class="form-control" rows="5" kc-select-action="click"
- readonly>{{signingKeyInfo.publicKey}}</textarea>
- </div>
- </div>
- <div class="form-group" data-ng-show="signingKeyInfo.kid">
- <label class="col-md-2 control-label" for="kid">{{:: 'kid' | translate}}</label>
- <kc-tooltip>{{:: 'kid.tooltip' | translate}}</kc-tooltip>
- <div class="col-sm-6">
- <div class="row">
- <div class="col-sm-6">
- <input readonly kc-select-action="click" class="form-control" type="text" id="kid" name="kid"
- data-ng-model="signingKeyInfo.kid">
- </div>
- </div>
- </div>
- </div>
- <div class="form-group" data-ng-hide="signingKeyInfo.certificate || signingKeyInfo.publicKey">
- <label class="col-md-2 control-label"></label>
- <div class="col-sm-6">
- <div class="row">
- <div class="col-sm-6">{{:: 'no-client-certificate-configured' | translate}}</div>
- </div>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-10 col-md-offset-2" data-ng-show="client.access.configure">
- <button class="btn btn-default" type="submit" data-ng-click="generateSigningKey()">{{::
- 'gen-new-keys-and-cert' | translate}}</button>
- <button data-ng-disabled="useJwksUrl || useJwksString" class="btn btn-default" type="submit"
- data-ng-click="importCertificate()">{{:: 'import-certificate' | translate}}</button>
- <button kc-save data-ng-disabled="!changed">{{:: 'save' | translate}}</button>
- <button kc-reset data-ng-disabled="!changed">{{:: 'cancel' | translate}}</button>
- </div>
- </div>
- </form>
- </div>
- <kc-menu></kc-menu>
|