realm-identity-provider-bitbucket.html 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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="clientId"><span class="required">*</span> {{:: 'bitbucket-consumer-key' | translate}}</label>
  21. <div class="col-md-6">
  22. <input class="form-control" id="clientId" type="text" ng-model="identityProvider.config.clientId" required>
  23. </div>
  24. <kc-tooltip>{{:: 'bitbucket.key.tooltip' | translate}}</kc-tooltip>
  25. </div>
  26. <div class="form-group clearfix">
  27. <label class="col-md-2 control-label" for="clientSecret"><span class="required">*</span> {{:: 'bitbucket-consumer-secret' | translate}}</label>
  28. <div class="col-md-6">
  29. <input class="form-control" id="clientSecret" kc-password ng-model="identityProvider.config.clientSecret" required>
  30. </div>
  31. <kc-tooltip>{{:: 'bitbucket.secret.tooltip' | translate}}</kc-tooltip>
  32. </div>
  33. <div class="form-group clearfix">
  34. <label class="col-md-2 control-label" for="defaultScope">{{:: 'default-scopes' | translate}} </label>
  35. <div class="col-md-6">
  36. <input class="form-control" id="defaultScope" type="text" ng-model="identityProvider.config.defaultScope">
  37. </div>
  38. <kc-tooltip>{{:: 'bitbucket.default-scopes.tooltip' | translate}}</kc-tooltip>
  39. </div>
  40. <div class="form-group">
  41. <label class="col-md-2 control-label" for="enabled">{{:: 'store-tokens' | translate}}</label>
  42. <div class="col-md-6">
  43. <input ng-model="identityProvider.storeToken" id="storeToken" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  44. </div>
  45. <kc-tooltip>{{:: 'identity-provider.store-tokens.tooltip' | translate}}</kc-tooltip>
  46. </div>
  47. <div class="form-group">
  48. <label class="col-md-2 control-label" for="storedTokensReadable">{{:: 'stored-tokens-readable' | translate}}</label>
  49. <div class="col-md-6">
  50. <input ng-model="identityProvider.addReadTokenRoleOnCreate" id="storedTokensReadable" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  51. </div>
  52. <kc-tooltip>{{:: 'identity-provider.stored-tokens-readable.tooltip' | translate}}</kc-tooltip>
  53. </div>
  54. <div class="form-group">
  55. <label class="col-md-2 control-label" for="enabled">{{:: 'enabled' | translate}}</label>
  56. <div class="col-md-6">
  57. <input ng-model="identityProvider.enabled" id="enabled" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  58. </div>
  59. <kc-tooltip>{{:: 'identity-provider.enabled.tooltip' | translate}}</kc-tooltip>
  60. </div>
  61. <div class="form-group">
  62. <label class="col-md-2 control-label" for="trustEmail">{{:: 'trust-email' | translate}}</label>
  63. <div class="col-md-6">
  64. <input ng-model="identityProvider.trustEmail" name="identityProvider.trustEmail" id="trustEmail" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  65. </div>
  66. <kc-tooltip>{{:: 'trust-email.tooltip' | translate}}</kc-tooltip>
  67. </div>
  68. <div class="form-group">
  69. <label class="col-md-2 control-label" for="linkOnly">{{:: 'link-only' | translate}}</label>
  70. <div class="col-md-6">
  71. <input ng-model="identityProvider.linkOnly" name="identityProvider.trustEmail" id="linkOnly" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  72. </div>
  73. <kc-tooltip>{{:: 'link-only.tooltip' | translate}}</kc-tooltip>
  74. </div>
  75. <div class="form-group">
  76. <label class="col-md-2 control-label" for="hideOnLoginPage">{{:: 'hide-on-login-page' | translate}}</label>
  77. <div class="col-md-6">
  78. <input ng-model="identityProvider.config.hideOnLoginPage" name="identityProvider.config.hideOnLoginPage" id="hideOnLoginPage" onoffswitchvalue on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  79. </div>
  80. <kc-tooltip>{{:: 'hide-on-login-page.tooltip' | translate}}</kc-tooltip>
  81. </div>
  82. <div class="form-group">
  83. <label class="col-md-2 control-label" for="guiOrder">{{:: 'gui-order' | translate}}</label>
  84. <div class="col-md-6">
  85. <input class="form-control" id="guiOrder" type="text" ng-model="identityProvider.config.guiOrder">
  86. </div>
  87. <kc-tooltip>{{:: 'gui-order.tooltip' | translate}}</kc-tooltip>
  88. </div>
  89. <div class="form-group">
  90. <label class="col-md-2 control-label" for="firstBrokerLoginFlowAlias">{{:: 'first-broker-login-flow' | translate}}</label>
  91. <div class="col-md-6">
  92. <div>
  93. <select class="form-control" id="firstBrokerLoginFlowAlias"
  94. ng-model="identityProvider.firstBrokerLoginFlowAlias"
  95. ng-options="flow.alias as flow.alias for flow in authFlows"
  96. required>
  97. </select>
  98. </div>
  99. </div>
  100. <kc-tooltip>{{:: 'first-broker-login-flow.tooltip' | translate}}</kc-tooltip>
  101. </div>
  102. <div class="form-group">
  103. <label class="col-md-2 control-label" for="postBrokerLoginFlowAlias">{{:: 'post-broker-login-flow' | translate}}</label>
  104. <div class="col-md-6">
  105. <div>
  106. <select class="form-control" id="postBrokerLoginFlowAlias"
  107. ng-model="identityProvider.postBrokerLoginFlowAlias"
  108. ng-options="flow.alias as flow.alias for flow in postBrokerAuthFlows">
  109. </select>
  110. </div>
  111. </div>
  112. <kc-tooltip>{{:: 'post-broker-login-flow.tooltip' | translate}}</kc-tooltip>
  113. </div>
  114. <div class="form-group">
  115. <label class="col-md-2 control-label" for="syncMode">{{:: 'sync-mode' | translate}}</label>
  116. <div class="col-md-6">
  117. <div>
  118. <select class="form-control" id="syncMode"
  119. ng-model="identityProvider.config.syncMode"
  120. required>
  121. <option id="syncMode_import" name="syncMode" value="IMPORT">{{:: 'sync-mode.import' | translate}}</option>
  122. <option id="syncMode_legacy" name="syncMode" value="LEGACY">{{:: 'sync-mode.legacy' | translate}}</option>
  123. <option id="syncMode_force" name="syncMode" value="FORCE">{{:: 'sync-mode.force' | translate}}</option>
  124. </select>
  125. </div>
  126. </div>
  127. <kc-tooltip>{{:: 'sync-mode.tooltip' | translate}}</kc-tooltip>
  128. </div>
  129. </fieldset>
  130. <div class="form-group">
  131. <div class="col-md-10 col-md-offset-2">
  132. <button kc-save data-ng-disabled="!changed">{{:: 'save' | translate}}</button>
  133. <button kc-cancel data-ng-click="cancel()" data-ng-disabled="!changed">{{:: 'cancel' | translate}}</button>
  134. </div>
  135. </div>
  136. </form>
  137. </div>
  138. <kc-menu></kc-menu>