realm-identity-provider-openshift-v4.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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}}/identity-provider-settings">{{:: 'identity-providers' | translate}}</a></li>
  4. <li data-ng-hide="newIdentityProvider">{{provider.name}}</li>
  5. <li data-ng-show="newIdentityProvider">{{:: 'add-identity-provider' | translate}}</li>
  6. </ol>
  7. <kc-tabs-identity-provider></kc-tabs-identity-provider>
  8. <form class="form-horizontal" name="realmForm" novalidate kc-read-only="!access.manageIdentityProviders">
  9. <fieldset>
  10. <div class="form-group clearfix">
  11. <label class="col-md-2 control-label" for="redirectUri">{{:: 'redirect-uri' | translate}}</label>
  12. <div class="col-sm-6">
  13. <input class="form-control" id="redirectUri" type="text" value="{{callbackUrl}}{{identityProvider.alias}}/endpoint" readonly kc-select-action="click">
  14. </div>
  15. <kc-tooltip>{{:: 'redirect-uri.tooltip' | translate}}</kc-tooltip>
  16. </div>
  17. </fieldset>
  18. <fieldset>
  19. <div class="form-group clearfix">
  20. <label class="col-md-2 control-label" for="identifier"><span class="required">*</span> {{:: 'alias' | translate}}</label>
  21. <div class="col-md-6">
  22. <input class="form-control" id="identifier" type="text" ng-model="identityProvider.alias" data-ng-readonly="!newIdentityProvider" required>
  23. </div>
  24. <kc-tooltip>{{:: 'identity-provider.alias.tooltip' | translate}}</kc-tooltip>
  25. </div>
  26. <div class="form-group clearfix">
  27. <label class="col-md-2 control-label" for="displayName"> {{:: 'display-name' | translate}}</label>
  28. <div class="col-md-6">
  29. <input class="form-control" id="displayName" type="text" ng-model="identityProvider.displayName">
  30. </div>
  31. <kc-tooltip>{{:: 'identity-provider.display-name.tooltip' | translate}}</kc-tooltip>
  32. </div>
  33. <div class="form-group clearfix">
  34. <label class="col-md-2 control-label" for="clientId"><span class="required">*</span> {{:: 'client-id' | translate}}</label>
  35. <div class="col-md-6">
  36. <input class="form-control" id="clientId" type="text" ng-model="identityProvider.config.clientId" required>
  37. </div>
  38. <kc-tooltip>{{:: 'social.client-id.tooltip' | translate}}</kc-tooltip>
  39. </div>
  40. <div class="form-group clearfix">
  41. <label class="col-md-2 control-label" for="clientSecret"><span class="required">*</span> {{:: 'client-secret' | translate}}</label>
  42. <div class="col-md-6">
  43. <input class="form-control" id="clientSecret" kc-password ng-model="identityProvider.config.clientSecret" required>
  44. </div>
  45. <kc-tooltip>{{:: 'social.client-secret.tooltip' | translate}}</kc-tooltip>
  46. </div>
  47. <div data-ng-include data-src="resourceUrl + '/partials/realm-identity-provider-' + identityProvider.providerId + '-ext.html'"></div>
  48. <div class="form-group clearfix">
  49. <label class="col-md-2 control-label" for="defaultScope">{{:: 'default-scopes' | translate}} </label>
  50. <div class="col-md-6">
  51. <input class="form-control" id="defaultScope" type="text" ng-model="identityProvider.config.defaultScope">
  52. </div>
  53. <kc-tooltip>{{:: 'social.default-scopes.tooltip' | translate}}</kc-tooltip>
  54. </div>
  55. <div class="form-group">
  56. <label class="col-md-2 control-label" for="storeToken">{{:: 'store-tokens' | translate}}</label>
  57. <div class="col-md-6">
  58. <input ng-model="identityProvider.storeToken" id="storeToken" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  59. </div>
  60. <kc-tooltip>{{:: 'identity-provider.store-tokens.tooltip' | translate}}</kc-tooltip>
  61. </div>
  62. <div class="form-group">
  63. <label class="col-md-2 control-label" for="storedTokensReadable">{{:: 'stored-tokens-readable' | translate}}</label>
  64. <div class="col-md-6">
  65. <input ng-model="identityProvider.addReadTokenRoleOnCreate" id="storedTokensReadable" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  66. </div>
  67. <kc-tooltip>{{:: 'identity-provider.stored-tokens-readable.tooltip' | translate}}</kc-tooltip>
  68. </div>
  69. <div class="form-group">
  70. <label class="col-md-2 control-label" for="enabled">{{:: 'enabled' | translate}}</label>
  71. <div class="col-md-6">
  72. <input ng-model="identityProvider.enabled" id="enabled" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  73. </div>
  74. <kc-tooltip>{{:: 'identity-provider.enabled.tooltip' | translate}}</kc-tooltip>
  75. </div>
  76. <div class="form-group">
  77. <label class="col-md-2 control-label" for="disableUserInfo">{{:: 'disableUserInfo' | translate}}</label>
  78. <div class="col-md-6">
  79. <input ng-model="identityProvider.config.disableUserInfo" id="disableUserInfo" onoffswitchvalue on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  80. </div>
  81. <kc-tooltip>{{:: 'identity-provider.disableUserInfo.tooltip' | translate}}</kc-tooltip>
  82. </div>
  83. <div class="form-group">
  84. <label class="col-md-2 control-label" for="trustEmail">{{:: 'trust-email' | translate}}</label>
  85. <div class="col-md-6">
  86. <input ng-model="identityProvider.trustEmail" name="identityProvider.trustEmail" id="trustEmail" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  87. </div>
  88. <kc-tooltip>{{:: 'trust-email.tooltip' | translate}}</kc-tooltip>
  89. </div>
  90. <div class="form-group">
  91. <label class="col-md-2 control-label" for="linkOnly">{{:: 'link-only' | translate}}</label>
  92. <div class="col-md-6">
  93. <input ng-model="identityProvider.linkOnly" name="identityProvider.trustEmail" id="linkOnly" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  94. </div>
  95. <kc-tooltip>{{:: 'linkOnly.tooltip' | translate}}</kc-tooltip>
  96. </div>
  97. <div class="form-group">
  98. <label class="col-md-2 control-label" for="hideOnLoginPage">{{:: 'hide-on-login-page' | translate}}</label>
  99. <div class="col-md-6">
  100. <input ng-model="identityProvider.config.hideOnLoginPage" name="identityProvider.config.hideOnLoginPage" id="hideOnLoginPage" onoffswitchvalue on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  101. </div>
  102. <kc-tooltip>{{:: 'hide-on-login-page.tooltip' | translate}}</kc-tooltip>
  103. </div>
  104. <div class="form-group">
  105. <label class="col-md-2 control-label" for="guiOrder">{{:: 'gui-order' | translate}}</label>
  106. <div class="col-md-6">
  107. <input class="form-control" id="guiOrder" type="text" ng-model="identityProvider.config.guiOrder">
  108. </div>
  109. <kc-tooltip>{{:: 'gui-order.tooltip' | translate}}</kc-tooltip>
  110. </div>
  111. <div class="form-group">
  112. <label class="col-md-2 control-label" for="firstBrokerLoginFlowAlias">{{:: 'first-broker-login-flow' | translate}}</label>
  113. <div class="col-md-6">
  114. <div>
  115. <select class="form-control" id="firstBrokerLoginFlowAlias"
  116. ng-model="identityProvider.firstBrokerLoginFlowAlias"
  117. ng-options="flow.alias as flow.alias for flow in authFlows"
  118. required>
  119. </select>
  120. </div>
  121. </div>
  122. <kc-tooltip>{{:: 'first-broker-login-flow.tooltip' | translate}}</kc-tooltip>
  123. </div>
  124. <div class="form-group">
  125. <label class="col-md-2 control-label" for="postBrokerLoginFlowAlias">{{:: 'post-broker-login-flow' | translate}}</label>
  126. <div class="col-md-6">
  127. <div>
  128. <select class="form-control" id="postBrokerLoginFlowAlias"
  129. ng-model="identityProvider.postBrokerLoginFlowAlias"
  130. ng-options="flow.alias as flow.alias for flow in postBrokerAuthFlows">
  131. </select>
  132. </div>
  133. </div>
  134. <kc-tooltip>{{:: 'post-broker-login-flow.tooltip' | translate}}</kc-tooltip>
  135. </div>
  136. <div class="form-group">
  137. <label class="col-md-2 control-label" for="syncMode">{{:: 'sync-mode' | translate}}</label>
  138. <div class="col-md-6">
  139. <div>
  140. <select class="form-control" id="syncMode"
  141. ng-model="identityProvider.config.syncMode"
  142. required>
  143. <option id="syncMode_import" name="syncMode" value="IMPORT">{{:: 'sync-mode.import' | translate}}</option>
  144. <option id="syncMode_legacy" name="syncMode" value="LEGACY">{{:: 'sync-mode.legacy' | translate}}</option>
  145. <option id="syncMode_force" name="syncMode" value="FORCE">{{:: 'sync-mode.force' | translate}}</option>
  146. </select>
  147. </div>
  148. </div>
  149. <kc-tooltip>{{:: 'sync-mode.tooltip' | translate}}</kc-tooltip>
  150. </div>
  151. </fieldset>
  152. <div class="form-group">
  153. <div class="col-md-10 col-md-offset-2">
  154. <button kc-save data-ng-disabled="!changed">{{:: 'save' | translate}}</button>
  155. <button kc-cancel data-ng-click="cancel()" data-ng-disabled="!changed">{{:: 'cancel' | translate}}</button>
  156. </div>
  157. </div>
  158. </form>
  159. </div>
  160. <kc-menu></kc-menu>