system.xml 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
  9. <system>
  10. <section id="oauth" translate="label" type="text" sortOrder="300" showInDefault="1" showInWebsite="1" showInStore="1">
  11. <label>OAuth</label>
  12. <tab>service</tab>
  13. <resource>Magento_Integration::config_oauth</resource>
  14. <group id="access_token_lifetime" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="0" showInStore="0">
  15. <label>Access Token Expiration</label>
  16. <field id="customer" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  17. <label>Customer Token Lifetime (hours)</label>
  18. <comment>We will disable this feature if the value is empty.</comment>
  19. </field>
  20. <field id="admin" translate="label comment" type="text" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  21. <label>Admin Token Lifetime (hours)</label>
  22. <comment>We will disable this feature if the value is empty.</comment>
  23. </field>
  24. </group>
  25. <group id="cleanup" translate="label" type="text" sortOrder="300" showInDefault="1" showInWebsite="0" showInStore="0">
  26. <label>Cleanup Settings</label>
  27. <field id="cleanup_probability" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  28. <label>Cleanup Probability</label>
  29. <comment>Integer. Launch cleanup in X OAuth requests. 0 (not recommended) - to disable cleanup</comment>
  30. </field>
  31. <field id="expiration_period" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  32. <label>Expiration Period</label>
  33. <comment>Cleanup entries older than X minutes.</comment>
  34. </field>
  35. </group>
  36. <group id="consumer" translate="label" type="text" sortOrder="400" showInDefault="1" showInWebsite="0" showInStore="0">
  37. <label>Consumer Settings</label>
  38. <field id="expiration_period" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  39. <label>Expiration Period</label>
  40. <comment>Consumer key/secret will expire if not used within X seconds after Oauth token exchange starts.</comment>
  41. </field>
  42. <field id="post_maxredirects" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  43. <label>OAuth consumer credentials HTTP Post maxredirects</label>
  44. <comment>Number of maximum redirects for OAuth consumer credentials Post request.</comment>
  45. </field>
  46. <field id="post_timeout" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  47. <label>OAuth consumer credentials HTTP Post timeout</label>
  48. <comment>Timeout for OAuth consumer credentials Post request within X seconds.</comment>
  49. </field>
  50. </group>
  51. <group id="authentication_lock" translate="label" type="text" sortOrder="400" showInDefault="1" showInWebsite="0" showInStore="0">
  52. <label>Authentication Locks</label>
  53. <field id="max_failures_count" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  54. <label>Maximum Login Failures to Lock Out Account</label>
  55. <comment>Maximum Number of authentication failures to lock out account.</comment>
  56. </field>
  57. <field id="timeout" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
  58. <label>Lockout Time (seconds)</label>
  59. <comment>Period of time in seconds after which account will be unlocked.</comment>
  60. </field>
  61. </group>
  62. </section>
  63. </system>
  64. </config>