system.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * MageSpecialist
  5. *
  6. * NOTICE OF LICENSE
  7. *
  8. * This source file is subject to the Open Software License (OSL 3.0)
  9. * that is bundled with this package in the file LICENSE.txt.
  10. * It is also available through the world-wide-web at this URL:
  11. * http://opensource.org/licenses/osl-3.0.php
  12. * If you did not receive a copy of the license and are unable to
  13. * obtain it through the world-wide-web, please send an email
  14. * to info@magespecialist.it so we can send you a copy immediately.
  15. *
  16. * @category MSP
  17. * @package MSP_TwoFactorAuth
  18. * @copyright Copyright (c) 2017 Skeeller srl (http://www.magespecialist.it)
  19. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  20. */
  21. -->
  22. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  23. xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
  24. <system>
  25. <tab id="security" translate="label" sortOrder="200">
  26. <label>Security</label>
  27. </tab>
  28. <section id="msp_securitysuite_twofactorauth" translate="label" type="text" sortOrder="500" showInDefault="1"
  29. showInWebsite="1" showInStore="1">
  30. <class>separator-top</class>
  31. <label>2FA</label>
  32. <tab>security</tab>
  33. <resource>MSP_TwoFactorAuth::config</resource>
  34. <group id="general" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="0"
  35. showInStore="0">
  36. <label>General</label>
  37. <field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0"
  38. showInStore="0">
  39. <label>Enable Two Factor Auth</label>
  40. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  41. </field>
  42. <field canRestore="1" id="force_providers" translate="label" type="multiselect" sortOrder="30"
  43. showInDefault="1" showInWebsite="0" showInStore="0">
  44. <label>Force providers</label>
  45. <source_model>MSP\TwoFactorAuth\Model\Config\Source\Provider</source_model>
  46. <comment>Force providers to be used by all users in this system. Leave empty to allow individual
  47. selection.
  48. </comment>
  49. </field>
  50. </group>
  51. <group id="google" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="0"
  52. showInStore="0">
  53. <label>Google Authenticator</label>
  54. <field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0"
  55. showInStore="0">
  56. <label>Enable this provider</label>
  57. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  58. </field>
  59. <field canRestore="1" id="allow_trusted_devices" translate="label" type="select" sortOrder="20"
  60. showInDefault="1" showInWebsite="0" showInStore="0">
  61. <label>Enable "trust this device" option</label>
  62. <comment>NOTE: This option should be used in HTTPS only environments</comment>
  63. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  64. </field>
  65. </group>
  66. <group id="u2fkey" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="0"
  67. showInStore="0">
  68. <label>U2F Devices (Yubikey and others)</label>
  69. <field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0"
  70. showInStore="0">
  71. <label>Enable this provider</label>
  72. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  73. <comment>Requires HTTPS to work</comment>
  74. </field>
  75. <field canRestore="1" id="allow_trusted_devices" translate="label" type="select" sortOrder="20"
  76. showInDefault="1" showInWebsite="0" showInStore="0">
  77. <label>Enable "trust this device" option</label>
  78. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  79. </field>
  80. </group>
  81. <group id="duo" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="0"
  82. showInStore="0">
  83. <label>Duo Security</label>
  84. <field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0"
  85. showInStore="0">
  86. <label>Enable this provider</label>
  87. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  88. </field>
  89. <field id="integration_key" translate="label comment" type="password" sortOrder="20" showInDefault="1"
  90. showInWebsite="0" showInStore="0">
  91. <label>Integration key</label>
  92. </field>
  93. <field id="secret_key" translate="label comment" type="password" sortOrder="30" showInDefault="1"
  94. showInWebsite="0" showInStore="0">
  95. <label>Secret key</label>
  96. </field>
  97. <field id="api_hostname" translate="label comment" type="text" sortOrder="40" showInDefault="1"
  98. showInWebsite="0" showInStore="0">
  99. <label>API hostname</label>
  100. </field>
  101. </group>
  102. <group id="authy" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="0"
  103. showInStore="0">
  104. <label>Authy</label>
  105. <field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0"
  106. showInStore="0">
  107. <label>Enable this provider</label>
  108. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  109. </field>
  110. <field id="api_key" translate="label comment" type="password" sortOrder="20" showInDefault="1"
  111. showInWebsite="0" showInStore="0">
  112. <label>API key</label>
  113. </field>
  114. <field canRestore="1" id="allow_trusted_devices" translate="label" type="select" sortOrder="30"
  115. showInDefault="1" showInWebsite="0" showInStore="0">
  116. <label>Enable "trust this device" option</label>
  117. <comment>NOTE: This option should be used in HTTPS only environments</comment>
  118. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  119. </field>
  120. <field canRestore="1" id="onetouch_message" translate="label" type="text" sortOrder="40"
  121. showInDefault="1" showInWebsite="0" showInStore="0">
  122. <label>OneTouch Message</label>
  123. </field>
  124. </group>
  125. </section>
  126. </system>
  127. </config>