realm-identity-provider-oidc.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  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-show="!newIdentityProvider && identityProvider.displayName">{{identityProvider.displayName}}</li>
  5. <li data-ng-show="!newIdentityProvider && !identityProvider.displayName">{{identityProvider.alias}}</li>
  6. <li data-ng-show="newIdentityProvider">{{:: 'add-identity-provider' | translate}}</li>
  7. </ol>
  8. <kc-tabs-identity-provider></kc-tabs-identity-provider>
  9. <form class="form-horizontal" name="realmForm" novalidate kc-read-only="!access.manageIdentityProviders">
  10. <fieldset>
  11. <div class="form-group clearfix">
  12. <label class="col-md-2 control-label" for="redirectUri">{{:: 'redirect-uri' | translate}}</label>
  13. <div class="col-md-6">
  14. <input class="form-control" id="redirectUri" type="text" value="{{callbackUrl}}{{identityProvider.alias}}/endpoint" readonly kc-select-action="click">
  15. </div>
  16. <kc-tooltip>{{:: 'redirect-uri.tooltip' | translate}}</kc-tooltip>
  17. </div>
  18. </fieldset>
  19. <fieldset>
  20. <div class="form-group clearfix">
  21. <label class="col-md-2 control-label" for="identifier"><span class="required">*</span> {{:: 'alias' | translate}}</label>
  22. <div class="col-md-6">
  23. <input kc-no-reserved-chars class="form-control" id="identifier" type="text" ng-model="identityProvider.alias" data-ng-readonly="!newIdentityProvider" required>
  24. </div>
  25. <kc-tooltip>{{:: 'identity-provider.alias.tooltip' | translate}}</kc-tooltip>
  26. </div>
  27. <div class="form-group clearfix">
  28. <label class="col-md-2 control-label" for="displayName"> {{:: 'display-name' | translate}}</label>
  29. <div class="col-md-6">
  30. <input class="form-control" id="displayName" type="text" ng-model="identityProvider.displayName">
  31. </div>
  32. <kc-tooltip>{{:: 'identity-provider.display-name.tooltip' | translate}}</kc-tooltip>
  33. </div>
  34. <div class="form-group">
  35. <label class="col-md-2 control-label" for="enabled">{{:: 'enabled' | translate}}</label>
  36. <div class="col-md-6">
  37. <input ng-model="identityProvider.enabled" id="enabled" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  38. </div>
  39. <kc-tooltip>{{:: 'identity-provider.enabled.tooltip' | translate}}</kc-tooltip>
  40. </div>
  41. <div class="form-group">
  42. <label class="col-md-2 control-label" for="storeToken">{{:: '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="trustEmail">{{:: 'trust-email' | translate}}</label>
  57. <div class="col-md-6">
  58. <input ng-model="identityProvider.trustEmail" name="identityProvider.trustEmail" id="trustEmail" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  59. </div>
  60. <kc-tooltip>{{:: 'trust-email.tooltip' | translate}}</kc-tooltip>
  61. </div>
  62. <div class="form-group">
  63. <label class="col-md-2 control-label" for="linkOnly">{{:: 'link-only' | translate}}</label>
  64. <div class="col-md-6">
  65. <input ng-model="identityProvider.linkOnly" name="identityProvider.trustEmail" id="linkOnly" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  66. </div>
  67. <kc-tooltip>{{:: 'link-only.tooltip' | translate}}</kc-tooltip>
  68. </div>
  69. <div class="form-group">
  70. <label class="col-md-2 control-label" for="hideOnLoginPage">{{:: 'hide-on-login-page' | translate}}</label>
  71. <div class="col-md-6">
  72. <input ng-model="identityProvider.config.hideOnLoginPage" name="identityProvider.config.hideOnLoginPage" id="hideOnLoginPage" onoffswitchvalue on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  73. </div>
  74. <kc-tooltip>{{:: 'hide-on-login-page.tooltip' | translate}}</kc-tooltip>
  75. </div>
  76. <div class="form-group">
  77. <label class="col-md-2 control-label" for="guiOrder">{{:: 'gui-order' | translate}}</label>
  78. <div class="col-md-6">
  79. <input class="form-control" id="guiOrder" type="text" ng-model="identityProvider.config.guiOrder">
  80. </div>
  81. <kc-tooltip>{{:: 'gui-order.tooltip' | translate}}</kc-tooltip>
  82. </div>
  83. <div class="form-group">
  84. <label class="col-md-2 control-label" for="firstBrokerLoginFlowAlias">{{:: 'first-broker-login-flow' | translate}}</label>
  85. <div class="col-md-6">
  86. <div>
  87. <select class="form-control" id="firstBrokerLoginFlowAlias"
  88. ng-model="identityProvider.firstBrokerLoginFlowAlias"
  89. ng-options="flow.alias as flow.alias for flow in authFlows"
  90. required>
  91. </select>
  92. </div>
  93. </div>
  94. <kc-tooltip>{{:: 'first-broker-login-flow.tooltip' | translate}}</kc-tooltip>
  95. </div>
  96. <div class="form-group">
  97. <label class="col-md-2 control-label" for="postBrokerLoginFlowAlias">{{:: 'post-broker-login-flow' | translate}}</label>
  98. <div class="col-md-6">
  99. <div>
  100. <select class="form-control" id="postBrokerLoginFlowAlias"
  101. ng-model="identityProvider.postBrokerLoginFlowAlias"
  102. ng-options="flow.alias as flow.alias for flow in postBrokerAuthFlows">
  103. </select>
  104. </div>
  105. </div>
  106. <kc-tooltip>{{:: 'post-broker-login-flow.tooltip' | translate}}</kc-tooltip>
  107. </div>
  108. <div class="form-group">
  109. <label class="col-md-2 control-label" for="syncMode">{{:: 'sync-mode' | translate}}</label>
  110. <div class="col-md-6">
  111. <div>
  112. <select class="form-control" id="syncMode"
  113. ng-model="identityProvider.config.syncMode"
  114. required>
  115. <option id="syncMode_import" name="syncMode" value="IMPORT">{{:: 'sync-mode.import' | translate}}</option>
  116. <option id="syncMode_legacy" name="syncMode" value="LEGACY">{{:: 'sync-mode.legacy' | translate}}</option>
  117. <option id="syncMode_force" name="syncMode" value="FORCE">{{:: 'sync-mode.force' | translate}}</option>
  118. </select>
  119. </div>
  120. </div>
  121. <kc-tooltip>{{:: 'sync-mode.tooltip' | translate}}</kc-tooltip>
  122. </div>
  123. </fieldset>
  124. <fieldset>
  125. <legend uncollapsed><span class="text">{{:: 'openid-connect-config' | translate}}</span> <kc-tooltip>{{:: 'openid-connect-config.tooltip' | translate}}</kc-tooltip></legend>
  126. <div class="form-group clearfix">
  127. <label class="col-md-2 control-label" for="authorizationUrl"><span class="required">*</span> {{:: 'authorization-url' | translate}}</label>
  128. <div class="col-md-6">
  129. <input class="form-control" id="authorizationUrl" type="text" ng-model="identityProvider.config.authorizationUrl" required>
  130. </div>
  131. <kc-tooltip>{{:: 'authorization-url.tooltip' | translate}}</kc-tooltip>
  132. </div>
  133. <div class="form-group">
  134. <label class="col-sm-2 control-label" for="loginHint">{{:: 'loginHint' | translate}}</label>
  135. <div class="col-sm-4">
  136. <input ng-model="identityProvider.config.loginHint" id="loginHint" onoffswitchvalue on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  137. </div>
  138. <kc-tooltip>{{:: 'loginHint.tooltip' | translate}}</kc-tooltip>
  139. </div>
  140. <div class="form-group">
  141. <label class="col-sm-2 control-label" for="uiLocales">{{:: 'uiLocales' | translate}}</label>
  142. <div class="col-sm-4">
  143. <input ng-model="identityProvider.config.uiLocales" id="uiLocales" onoffswitchvalue on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  144. </div>
  145. <kc-tooltip>{{:: 'uiLocales.tooltip' | translate}}</kc-tooltip>
  146. </div>
  147. <div class="form-group clearfix">
  148. <label class="col-md-2 control-label" for="tokenUrl"><span class="required">*</span> {{:: 'token-url' | translate}}</label>
  149. <div class="col-md-6">
  150. <input class="form-control" id="tokenUrl" type="text" ng-model="identityProvider.config.tokenUrl" required>
  151. </div>
  152. <kc-tooltip>{{:: 'token-url.tooltip' | translate}}</kc-tooltip>
  153. </div>
  154. <div class="form-group clearfix">
  155. <label class="col-md-2 control-label" for="userInfoUrl">{{:: 'logout-url' | translate}}</label>
  156. <div class="col-md-6">
  157. <input class="form-control" id="logoutUrl" type="text" ng-model="identityProvider.config.logoutUrl">
  158. </div>
  159. <kc-tooltip>{{:: 'identity-provider.logout-url.tooltip' | translate}}</kc-tooltip>
  160. </div>
  161. <div class="form-group">
  162. <label class="col-sm-2 control-label" for="backchannelSupported">{{:: 'backchannel-logout' | translate}}</label>
  163. <div class="col-sm-4">
  164. <input ng-model="identityProvider.config.backchannelSupported" id="backchannelSupported" onoffswitchvalue on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  165. </div>
  166. <kc-tooltip>{{:: 'backchannel-logout.tooltip' | translate}}</kc-tooltip>
  167. </div>
  168. <div class="form-group">
  169. <label class="col-md-2 control-label" for="disableUserInfo">{{:: 'disableUserInfo' | translate}}</label>
  170. <div class="col-md-6">
  171. <input ng-model="identityProvider.config.disableUserInfo" id="disableUserInfo" onoffswitchvalue on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  172. </div>
  173. <kc-tooltip>{{:: 'identity-provider.disableUserInfo.tooltip' | translate}}</kc-tooltip>
  174. </div>
  175. <div class="form-group clearfix">
  176. <label class="col-md-2 control-label" for="userInfoUrl">{{:: 'user-info-url' | translate}}</label>
  177. <div class="col-md-6">
  178. <input class="form-control" id="userInfoUrl" type="text" ng-model="identityProvider.config.userInfoUrl">
  179. </div>
  180. <kc-tooltip>{{:: 'user-info-url.tooltip' | translate}}</kc-tooltip>
  181. </div>
  182. <div class="form-group clearfix">
  183. <label class="col-md-2 control-label" for="clientAuth"><span class="required">*</span> {{:: 'client-auth' | translate}}</label>
  184. <div class="col-md-6">
  185. <div>
  186. <select class="form-control" id="clientAuth"
  187. ng-model="identityProvider.config.clientAuthMethod"
  188. required>
  189. <option id="clientAuth_post" name="clientAuth" value="client_secret_post" selected>{{:: 'client-auth.client_secret_post' | translate}}</option>
  190. <option id="clientAuth_basic" name="clientAuth" value="client_secret_basic">{{:: 'client-auth.client_secret_basic' | translate}}</option>
  191. <option id="clientAuth_secret_jwt" name="clientAuth" value="client_secret_jwt">{{:: 'client-auth.client_secret_jwt' | translate}}</option>
  192. <option id="clientAuth_privatekey_jwt" name="clientAuth" value="private_key_jwt">{{:: 'client-auth.private_key_jwt' | translate}}</option>
  193. </select>
  194. </div>
  195. </div>
  196. <kc-tooltip>{{:: 'client-auth.tooltip' | translate}}</kc-tooltip>
  197. </div>
  198. <div class="form-group clearfix">
  199. <label class="col-md-2 control-label" for="clientId"><span class="required">*</span> {{:: 'client-id' | translate}}</label>
  200. <div class="col-md-6">
  201. <input class="form-control" id="clientId" type="text" ng-model="identityProvider.config.clientId" required>
  202. </div>
  203. <kc-tooltip>{{:: 'identity-provider.client-id.tooltip' | translate}}</kc-tooltip>
  204. </div>
  205. <div class="form-group clearfix">
  206. <label class="col-md-2 control-label" for="clientSecret"><span data-ng-show="identityProvider.config.clientAuthMethod != 'private_key_jwt'" class="required">*</span> {{:: 'client-secret' | translate}}</label>
  207. <div class="col-md-6">
  208. <input class="form-control" id="clientSecret" kc-password ng-model="identityProvider.config.clientSecret" ng-required="identityProvider.config.clientAuthMethod != 'private_key_jwt'">
  209. </div>
  210. <kc-tooltip>{{:: 'client-secret.tooltip' | translate}}</kc-tooltip>
  211. </div>
  212. <div class="form-group clearfix">
  213. <label class="col-md-2 control-label" for="clientAssertionSigningAlg"><span data-ng-show="identityProvider.config.clientAuthMethod == 'private_key_jwt' || identityProvider.config.clientAuthMethod == 'client_secret_jwt'" class="required">*</span> {{:: 'client-assertion-signing-algorithm' | translate}}</label>
  214. <div class="col-md-6">
  215. <select class="form-control" id="clientAssertionSigningAlg" ng-required="identityProvider.config.clientAuthMethod == 'private_key_jwt' || identityProvider.config.clientAuthMethod == 'client_secret_jwt'"
  216. ng-model="identityProvider.config.clientAssertionSigningAlg">
  217. <option value=""></option>
  218. <option ng-repeat="provider in serverInfo.listProviderIds('signature')" value="{{provider}}">
  219. {{provider}}</option>
  220. </select>
  221. </div>
  222. <kc-tooltip>{{:: 'client-assertion-signing-algorithm.tooltip' | translate}}</kc-tooltip>
  223. </div>
  224. <div class="form-group clearfix">
  225. <label class="col-md-2 control-label" for="issuer">{{:: 'issuer' | translate}} </label>
  226. <div class="col-md-6">
  227. <input class="form-control" id="issuer" type="text" ng-model="identityProvider.config.issuer">
  228. </div>
  229. <kc-tooltip>{{:: 'issuer.tooltip' | translate}}</kc-tooltip>
  230. </div>
  231. <div class="form-group clearfix">
  232. <label class="col-md-2 control-label" for="defaultScope">{{:: 'default-scopes' | translate}} </label>
  233. <div class="col-md-6">
  234. <input class="form-control" id="defaultScope" type="text" ng-model="identityProvider.config.defaultScope">
  235. </div>
  236. <kc-tooltip>{{:: 'identity-provider.default-scopes.tooltip' | translate}}</kc-tooltip>
  237. </div>
  238. <div class="form-group">
  239. <label class="col-md-2 control-label" for="prompt">{{:: 'prompt' | translate}}</label>
  240. <div class="col-md-6">
  241. <div>
  242. <select class="form-control" id="prompt" ng-model="identityProvider.config.prompt">
  243. <option value="">{{:: 'unspecified.option' | translate}}</option>
  244. <option value="none">{{:: 'none.option' | translate}}</option>
  245. <option value="consent">{{:: 'consent.option' | translate}}</option>
  246. <option value="login">{{:: 'login.option' | translate}}</option>
  247. <option value="select_account">{{:: 'select-account.option' | translate}}</option>
  248. </select>
  249. </div>
  250. </div>
  251. <kc-tooltip>{{:: 'prompt.tooltip' | translate}}</kc-tooltip>
  252. </div>
  253. <div class="form-group">
  254. <label class="col-md-2 control-label" for="acceptsPromptNoneForwardFromClient">{{:: 'accepts-prompt-none-forward-from-client' | translate}}</label>
  255. <div class="col-md-6">
  256. <input ng-model="identityProvider.config.acceptsPromptNoneForwardFromClient" id="acceptsPromptNoneForwardFromClient" onoffswitchvalue on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  257. </div>
  258. <kc-tooltip>{{:: 'accepts-prompt-none-forward-from-client.tooltip' | translate}}</kc-tooltip>
  259. </div>
  260. <div class="form-group">
  261. <label class="col-md-2 control-label" for="validateSignature">{{:: 'validate-signatures' | translate}}</label>
  262. <div class="col-md-6">
  263. <input ng-model="identityProvider.config.validateSignature" id="validateSignature" onoffswitchvalue on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  264. </div>
  265. <kc-tooltip>{{:: 'identity-provider.validate-signatures.tooltip' | translate}}</kc-tooltip>
  266. </div>
  267. <div data-ng-show="identityProvider.config.validateSignature == 'true'">
  268. <div class="form-group">
  269. <label class="col-md-2 control-label" for="useJwksUrl">{{:: 'use-jwks-url' | translate}}</label>
  270. <div class="col-md-6">
  271. <input ng-model="identityProvider.config.useJwksUrl" id="useJwksUrl" onoffswitchvalue on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  272. </div>
  273. <kc-tooltip>{{:: 'identity-provider.use-jwks-url.tooltip' | translate}}</kc-tooltip>
  274. </div>
  275. <div class="form-group clearfix" data-ng-show="identityProvider.config.useJwksUrl == 'true'">
  276. <label class="col-md-2 control-label" for="jwksUrl">{{:: 'jwks-url' | translate}} </label>
  277. <div class="col-md-6">
  278. <input class="form-control" id="jwksUrl" type="text" ng-model="identityProvider.config.jwksUrl">
  279. </div>
  280. <kc-tooltip>{{:: 'identity-provider.jwks-url.tooltip' | translate}}</kc-tooltip>
  281. </div>
  282. <div class="form-group clearfix" data-ng-hide="identityProvider.config.useJwksUrl == 'true'">
  283. <label class="col-md-2 control-label" for="publicKeySignatureVerifier">{{:: 'validating-public-key' | translate}}</label>
  284. <div class="col-md-6">
  285. <textarea class="form-control" id="publicKeySignatureVerifier" ng-model="identityProvider.config.publicKeySignatureVerifier"></textarea>
  286. </div>
  287. <kc-tooltip>{{:: 'identity-provider.validating-public-key.tooltip' | translate}}</kc-tooltip>
  288. </div>
  289. <div class="form-group clearfix" data-ng-hide="identityProvider.config.useJwksUrl == 'true'">
  290. <label class="col-md-2 control-label" for="publicKeySignatureVerifierKeyId">{{:: 'validating-public-key-id' | translate}}</label>
  291. <div class="col-md-6">
  292. <input class="form-control" id="publicKeySignatureVerifierKeyId" ng-model="identityProvider.config.publicKeySignatureVerifierKeyId"/>
  293. </div>
  294. <kc-tooltip>{{:: 'identity-provider.validating-public-key-id.tooltip' | translate}}</kc-tooltip>
  295. </div>
  296. </div>
  297. <div class="form-group">
  298. <label class="col-md-2 control-label" for="pkceEnabled">{{:: 'pkce-enabled' | translate}}</label>
  299. <div class="col-md-6">
  300. <input ng-model="identityProvider.config.pkceEnabled" id="pkceEnabled" onoffswitchvalue on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  301. </div>
  302. <kc-tooltip>{{:: 'pkce-enabled.tooltip' | translate}}</kc-tooltip>
  303. </div>
  304. <div class="form-group clearfix" data-ng-hide="identityProvider.config.pkceEnabled == 'false'">
  305. <label class="col-md-2 control-label" for="pkceMethod">{{:: 'pkce-method' | translate}}</label>
  306. <div class="col-md-6">
  307. <div>
  308. <select class="form-control" id="pkceMethod" ng-model="identityProvider.config.pkceMethod">
  309. <option value="plain">{{:: 'pkce.plain.option' | translate}}</option>
  310. <option value="S256" selected>{{:: 'pkce.s256.option' | translate}}</option>
  311. </select>
  312. </div>
  313. </div>
  314. <kc-tooltip>{{:: 'pkce-method.tooltip' | translate}}</kc-tooltip>
  315. </div>
  316. <div class="form-group">
  317. <label class="col-md-2 control-label" for="allowedClockSkew">{{:: 'allowed-clock-skew' | translate}}</label>
  318. <div class="col-md-6">
  319. <input ng-model="identityProvider.config.allowedClockSkew" id="allowedClockSkew" type="text" class="form-control"/>
  320. </div>
  321. <kc-tooltip>{{:: 'identity-provider.allowed-clock-skew.tooltip' | translate}}</kc-tooltip>
  322. </div>
  323. <div class="form-group">
  324. <label class="col-md-2 control-label" for="forwardParameters">{{:: 'forwarded-query-parameters' | translate}}</label>
  325. <div class="col-md-6">
  326. <input class="form-control" id="forwardParameters" type="text" ng-model="identityProvider.config.forwardParameters"/>
  327. </div>
  328. <kc-tooltip>{{:: 'identity-provider.forwarded-query-parameters.tooltip' | translate}}</kc-tooltip>
  329. </div>
  330. </fieldset>
  331. <fieldset data-ng-show="newIdentityProvider">
  332. <legend uncollapsed><span class="text">{{:: 'import-external-idp-config' | translate}}</span> <kc-tooltip>{{:: 'import-external-idp-config.tooltip' | translate}}</kc-tooltip></legend>
  333. <div class="form-group" data-ng-show="newIdentityProvider">
  334. <label class="col-md-2 control-label" for="fromUrl">{{:: 'import-from-url' | translate}}</label>
  335. <div class="col-md-6">
  336. <input class="form-control" id="fromUrl" type="text" ng-model="fromUrl.data">
  337. </div>
  338. <kc-tooltip>{{:: 'identity-provider.import-from-url.tooltip' | translate}}</kc-tooltip>
  339. </div>
  340. <div class="form-group">
  341. <label class="col-md-2 control-label" for="importFrom"></label>
  342. <div class="col-md-6">
  343. <button id="importFrom" type="button" data-ng-click="importFrom()" data-ng-show="importUrl" class="btn btn-primary">{{:: 'import' | translate}}</button>
  344. </div>
  345. </div>
  346. <div class="form-group" data-ng-show="newIdentityProvider">
  347. <label class="col-md-2 control-label">{{:: 'import-from-file' | translate}}</label>
  348. <kc-tooltip>{{:: 'identity-provider.import-from-file.tooltip' | translate}}</kc-tooltip>
  349. <div class="col-md-6">
  350. <div class="controls kc-button-input-file" data-ng-show="!files || files.length == 0">
  351. <label for="import-file" class="btn btn-default">{{:: 'select-file' | translate}} <i class="pficon pficon-import"></i></label>
  352. <input id="import-file" type="file" class="hidden" ng-file-select="onFileSelect($files)">
  353. </div>
  354. <span class="kc-uploaded-file" data-ng-show="files.length > 0">
  355. {{files[0].name}}
  356. </span>
  357. </div>
  358. <div class="form-group">
  359. <label class="col-md-2 control-label" for="importFile"></label>
  360. <div class="col-md-6" data-ng-show="importFile">
  361. <button id="importFile" type="button" data-ng-click="uploadFile()" data-ng-show="importFile" class="btn btn-primary">{{:: 'import' | translate}}</button>
  362. </div>
  363. </div>
  364. </div>
  365. </fieldset>
  366. <div class="form-group">
  367. <div class="col-md-10 col-md-offset-2">
  368. <button kc-save data-ng-disabled="!changed">{{:: 'save' | translate}}</button>
  369. <button kc-cancel data-ng-click="cancel()" data-ng-disabled="!changed">{{:: 'cancel' | translate}}</button>
  370. </div>
  371. </div>
  372. </form>
  373. </div>
  374. <kc-menu></kc-menu>