realm-identity-provider-social.html 10 KB

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