2
0

appAdd.ftl 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <!DOCTYPE HTML>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <#include "../../layout/header.ftl"/>
  5. <#include "../../layout/common.cssjs.ftl"/>
  6. <style type="text/css">
  7. .table th, .table td {
  8. padding: .2rem;
  9. vertical-align: middle;
  10. }
  11. </style>
  12. <script type="text/javascript">
  13. <!--
  14. $(function(){
  15. });
  16. //-->
  17. </script>
  18. </head>
  19. <body>
  20. <form id="actionForm_app" method="post" type="label" autoclose="true"
  21. action="<@base/>/apps/saml20/add"
  22. forward="<@base/>/apps/list"
  23. enctype="multipart/form-data"
  24. class="needs-validation" novalidate>
  25. <!-- content -->
  26. <!--table-->
  27. <table class="table table-bordered" >
  28. <tbody>
  29. <tr>
  30. <td ><#include "../appAddCommon.ftl"/></td>
  31. </tr>
  32. <tr>
  33. <td>
  34. <table class="table table-bordered" >
  35. <tbody>
  36. <tr>
  37. <td colspan=4><@locale code="apps.saml.v2.0.info" /></td>
  38. </tr>
  39. <tr>
  40. <th><@locale code="apps.saml.spAcsUrl" />:</th>
  41. <td colspan =3>
  42. <input type="text" class="form-control" id="spAcsUrl" name="spAcsUrl" title="" value="" required="" />
  43. </td>
  44. </tr>
  45. <tr>
  46. <th><@locale code="apps.saml.entityId" />:</th>
  47. <td colspan =3>
  48. <input type="text" class="form-control" id="entityId" name="entityId" title="" value="" required="" />
  49. </td>
  50. </tr>
  51. <tr>
  52. <th><@locale code="apps.saml.issuer" />:</th>
  53. <td>
  54. <input type="text" class="form-control" id="issuer" name="issuer" title="" value="" required="" />
  55. </td>
  56. <th><@locale code="apps.saml.audience" />:</th>
  57. <td >
  58. <input type="text" class="form-control" id="audience" name="audience" title="" value="" required="" />
  59. </td>
  60. </tr>
  61. <tr>
  62. <th><@locale code="apps.saml.signature" />:</th>
  63. <td>
  64. <select id="signature" name="signature" class="form-control" >
  65. <option value="RSAwithSHA1" selected>RSAwithSHA1</option>
  66. <option value="RSAwithSHA256" >RSAwithSHA256</option>
  67. <option value="RSAwithSHA384" >RSAwithSHA384</option>
  68. <option value="RSAwithSHA512" >RSAwithSHA512</option>
  69. <option value="RSAwithMD5" >RSAwithMD5</option>
  70. <option value="RSAwithRIPEMD160" >RSAwithRIPEMD160</option>
  71. <option value="DSAwithSHA1" >DSAwithSHA1</option>
  72. <option value="ECDSAwithSHA1" >ECDSAwithSHA1</option>
  73. <option value="ECDSAwithSHA256" >ECDSAwithSHA256</option>
  74. <option value="ECDSAwithSHA384" >ECDSAwithSHA384</option>
  75. <option value="ECDSAwithSHA512" >ECDSAwithSHA512</option>
  76. <option value="HMAC-MD5" >HMAC-MD5</option>
  77. <option value="HMAC-SHA1" >HMAC-SHA1</option>
  78. <option value="HMAC-SHA256" >HMAC-SHA256</option>
  79. <option value="HMAC-SHA384" >HMAC-SHA384</option>
  80. <option value="HMAC-SHA512" >HMAC-SHA512</option>
  81. <option value="HMAC-RIPEMD160" >HMAC-RIPEMD160</option>
  82. </select>
  83. </td>
  84. <th><@locale code="apps.saml.digestMethod" />:</th>
  85. <td>
  86. <select id="digestMethod" name="digestMethod" class="form-control" >
  87. <option value="MD5" >MD5</option>
  88. <option value="SHA1" selected>SHA1</option>
  89. <option value="SHA256" >SHA256</option>
  90. <option value="SHA384" >SHA384</option>
  91. <option value="SHA512" >SHA512</option>
  92. <option value="RIPEMD-160" >RIPEMD-160</option>
  93. </select>
  94. </td>
  95. </tr>
  96. <tr>
  97. <th><@locale code="apps.saml.nameidFormat" />:</th>
  98. <td>
  99. <select id="nameidFormat" name="nameidFormat" class="form-control" >
  100. <option value="persistent" selected>persistent</option>
  101. <option value="transient">transient</option>
  102. <option value="emailAddress">emailAddress</option>
  103. <option value="X509SubjectName">X509SubjectName</option>
  104. <option value="WindowsDomainQualifiedName">WindowsDomainQualifiedName</option>
  105. <option value="unspecified" >unspecified</option>
  106. <option value="entity">entity</option>
  107. <option value="custom">user custom persistent </option>
  108. </select>
  109. <b class="orange">*</b><label for="fileType"></label>
  110. </td>
  111. <th><@locale code="apps.saml.nameIdConvert" />:</th>
  112. <td>
  113. <select id="nameIdConvert" name="nameIdConvert" class="form-control" >
  114. <option value="0" selected>
  115. <@locale code="apps.saml.nameIdConvert.original" /></option>
  116. <option value="1">
  117. <@locale code="apps.saml.nameIdConvert.upperCase" /></option>
  118. <option value="2">
  119. <@locale code="apps.saml.nameIdConvert.lowerCase" /></option>
  120. </select>
  121. <b class="orange">*</b><label for="issuer"></label>
  122. </td>
  123. </tr>
  124. <tr>
  125. <th style="width:15%;"><@locale code="apps.saml.binding" />:</th>
  126. <td style="width:35%;">
  127. <select id="binding" name="binding" class="form-control" >
  128. <option value="Redirect-Post" selected>Redirect-Post</option>
  129. <option value="Post-Post" >Post-Post</option>
  130. <option value="IdpInit-Post" >IdpInit-Post</option>
  131. <option value="Redirect-PostSimpleSign">Redirect-PostSimpleSign</option>
  132. <option value="Post-PostSimpleSign" >Post-PostSimpleSign</option>
  133. <option value="IdpInit-PostSimpleSign" >IdpInit-PostSimpleSign</option>
  134. </select>
  135. <b class="orange">*</b><label for="binding"></label>
  136. </td>
  137. <th style="width:15%;"><@locale code="apps.saml.validityInterval" />:</th>
  138. <td style="width:35%;">
  139. <input type="text" class="form-control" id="validityInterval" name="validityInterval" title="" value="15" required="" />
  140. </td>
  141. </tr>
  142. <tr>
  143. <th><@locale code="apps.saml.fileType" />:</th>
  144. <td>
  145. <select id="fileType" name="fileType" class="form-control" >
  146. <option value="certificate" selected><@locale code="apps.saml.fileType.certificate" /></option>
  147. <option value="metadata"><@locale code="apps.saml.fileType.metadata" /></option>
  148. </select>
  149. <b class="orange">*</b><label for="fileType"></label>
  150. </td>
  151. <th><@locale code="apps.saml.certMetaFile" />:</th>
  152. <td nowrap >
  153. <div style="float: left;">
  154. <img id="certMetaFileImg" height="40" width="80" alt="upload certificate or metadata file" src="<@base />/static/images/cert.png">
  155. </div>
  156. <div style="float: left; width: 250px;">
  157. <input class="form-control" id="certMetaFile" type="file" name="certMetaFile" />
  158. <b class="orange">*</b><label for="certMetaFile"></label>
  159. </div>
  160. </td>
  161. </tr>
  162. <tr>
  163. <th><@locale code="apps.saml.encrypted" />:</th>
  164. <td >
  165. <select id="encrypted" name="encrypted" class="form-control" >
  166. <option value="0" selected>
  167. <@locale code="apps.saml.encrypted.no" /></option>
  168. <option value="1">
  169. <@locale code="apps.saml.encrypted.yes" /></option>
  170. </select>
  171. </td>
  172. <th><@locale code="apps.isAdapter" />:</th>
  173. <td>
  174. <select id="isAdapter" name="isAdapter" class="form-control" >
  175. <option value="0" selected><@locale code="apps.isAdapter.no" /></option>
  176. <option value="1"><@locale code="apps.isAdapter.yes" /></option>
  177. </select>
  178. </td>
  179. </tr>
  180. <tr>
  181. <th><@locale code="apps.adapter" />:</th>
  182. <td colspan =3>
  183. <input type="text" class="form-control" id="adapter" name="adapter" title="" value=""/>
  184. </td>
  185. </tr>
  186. <tr>
  187. <td colspan =4>
  188. <input id="status" type="hidden" name="status" value="1"/>
  189. <input class="button btn btn-primary mr-3" id="submitBtn" type="submit" value="<@locale code="button.text.save" />"/>
  190. <input class="button btn btn-secondary mr-3" id="backBtn" type="button" value="<@locale code="button.text.cancel" />"/>
  191. </td>
  192. </tr>
  193. </tbody>
  194. </table>
  195. </td>
  196. </tr>
  197. </tbody>
  198. </table>
  199. </form>
  200. </body>
  201. </html>