auth0-python 3.2.2__tar.gz → 3.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. usr/local/lib/python3.7/site-packages/auth0/__init__.py +1 -0
  2. usr/local/lib/python3.7/site-packages/auth0/__pycache__/__init__.cpython-37.pyc +0 -0
  3. usr/local/lib/python3.7/site-packages/auth0/v3/__pycache__/__init__.cpython-37.pyc +0 -0
  4. usr/local/lib/{python3.6/site-packages/auth0/v3/__pycache__/exceptions.cpython-36.pyc → python3.7/site-packages/auth0/v3/__pycache__/exceptions.cpython-37.pyc} +0 -0
  5. usr/local/lib/{python3.6/site-packages/auth0/v3/authentication/__pycache__/__init__.cpython-36.pyc → python3.7/site-packages/auth0/v3/authentication/__pycache__/__init__.cpython-37.pyc} +0 -0
  6. usr/local/lib/{python3.6/site-packages/auth0/v3/authentication/__pycache__/authorize_client.cpython-36.pyc → python3.7/site-packages/auth0/v3/authentication/__pycache__/authorize_client.cpython-37.pyc} +0 -0
  7. usr/local/lib/{python3.6/site-packages/auth0/v3/authentication/__pycache__/base.cpython-36.pyc → python3.7/site-packages/auth0/v3/authentication/__pycache__/base.cpython-37.pyc} +0 -0
  8. usr/local/lib/{python3.6/site-packages/auth0/v3/authentication/__pycache__/database.cpython-36.pyc → python3.7/site-packages/auth0/v3/authentication/__pycache__/database.cpython-37.pyc} +0 -0
  9. usr/local/lib/{python3.6/site-packages/auth0/v3/authentication/__pycache__/delegated.cpython-36.pyc → python3.7/site-packages/auth0/v3/authentication/__pycache__/delegated.cpython-37.pyc} +0 -0
  10. usr/local/lib/{python3.6/site-packages/auth0/v3/authentication/__pycache__/enterprise.cpython-36.pyc → python3.7/site-packages/auth0/v3/authentication/__pycache__/enterprise.cpython-37.pyc} +0 -0
  11. usr/local/lib/{python3.6/site-packages/auth0/v3/authentication/__pycache__/get_token.cpython-36.pyc → python3.7/site-packages/auth0/v3/authentication/__pycache__/get_token.cpython-37.pyc} +0 -0
  12. usr/local/lib/{python3.6/site-packages/auth0/v3/authentication/__pycache__/logout.cpython-36.pyc → python3.7/site-packages/auth0/v3/authentication/__pycache__/logout.cpython-37.pyc} +0 -0
  13. usr/local/lib/{python3.6/site-packages/auth0/v3/authentication/__pycache__/passwordless.cpython-36.pyc → python3.7/site-packages/auth0/v3/authentication/__pycache__/passwordless.cpython-37.pyc} +0 -0
  14. usr/local/lib/{python3.6/site-packages/auth0/v3/authentication/__pycache__/social.cpython-36.pyc → python3.7/site-packages/auth0/v3/authentication/__pycache__/social.cpython-37.pyc} +0 -0
  15. usr/local/lib/{python3.6/site-packages/auth0/v3/authentication/__pycache__/users.cpython-36.pyc → python3.7/site-packages/auth0/v3/authentication/__pycache__/users.cpython-37.pyc} +0 -0
  16. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/authentication/get_token.py +3 -3
  17. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/authentication/passwordless.py +2 -2
  18. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/__init__.py +3 -2
  19. usr/local/lib/python3.7/site-packages/auth0/v3/management/__pycache__/__init__.cpython-37.pyc +0 -0
  20. usr/local/lib/python3.7/site-packages/auth0/v3/management/__pycache__/auth0.cpython-37.pyc +0 -0
  21. usr/local/lib/{python3.6/site-packages/auth0/v3/management/__pycache__/blacklists.cpython-36.pyc → python3.7/site-packages/auth0/v3/management/__pycache__/blacklists.cpython-37.pyc} +0 -0
  22. usr/local/lib/python3.7/site-packages/auth0/v3/management/__pycache__/client_grants.cpython-37.pyc +0 -0
  23. usr/local/lib/python3.7/site-packages/auth0/v3/management/__pycache__/clients.cpython-37.pyc +0 -0
  24. usr/local/lib/{python3.6/site-packages/auth0/v3/management/__pycache__/connections.cpython-36.pyc → python3.7/site-packages/auth0/v3/management/__pycache__/connections.cpython-37.pyc} +0 -0
  25. usr/local/lib/{python3.6/site-packages/auth0/v3/management/__pycache__/device_credentials.cpython-36.pyc → python3.7/site-packages/auth0/v3/management/__pycache__/device_credentials.cpython-37.pyc} +0 -0
  26. usr/local/lib/python3.7/site-packages/auth0/v3/management/__pycache__/email_templates.cpython-37.pyc +0 -0
  27. usr/local/lib/{python3.6/site-packages/auth0/v3/management/__pycache__/emails.cpython-36.pyc → python3.7/site-packages/auth0/v3/management/__pycache__/emails.cpython-37.pyc} +0 -0
  28. usr/local/lib/{python3.6/site-packages/auth0/v3/management/__pycache__/guardian.cpython-36.pyc → python3.7/site-packages/auth0/v3/management/__pycache__/guardian.cpython-37.pyc} +0 -0
  29. usr/local/lib/{python3.6/site-packages/auth0/v3/management/__pycache__/jobs.cpython-36.pyc → python3.7/site-packages/auth0/v3/management/__pycache__/jobs.cpython-37.pyc} +0 -0
  30. usr/local/lib/{python3.6/site-packages/auth0/v3/management/__pycache__/logs.cpython-36.pyc → python3.7/site-packages/auth0/v3/management/__pycache__/logs.cpython-37.pyc} +0 -0
  31. usr/local/lib/python3.7/site-packages/auth0/v3/management/__pycache__/resource_servers.cpython-37.pyc +0 -0
  32. usr/local/lib/python3.7/site-packages/auth0/v3/management/__pycache__/rest.cpython-37.pyc +0 -0
  33. usr/local/lib/python3.7/site-packages/auth0/v3/management/__pycache__/rules.cpython-37.pyc +0 -0
  34. usr/local/lib/{python3.6/site-packages/auth0/v3/management/__pycache__/stats.cpython-36.pyc → python3.7/site-packages/auth0/v3/management/__pycache__/stats.cpython-37.pyc} +0 -0
  35. usr/local/lib/{python3.6/site-packages/auth0/v3/management/__pycache__/tenants.cpython-36.pyc → python3.7/site-packages/auth0/v3/management/__pycache__/tenants.cpython-37.pyc} +0 -0
  36. usr/local/lib/{python3.6/site-packages/auth0/v3/management/__pycache__/tickets.cpython-36.pyc → python3.7/site-packages/auth0/v3/management/__pycache__/tickets.cpython-37.pyc} +0 -0
  37. usr/local/lib/{python3.6/site-packages/auth0/v3/management/__pycache__/user_blocks.cpython-36.pyc → python3.7/site-packages/auth0/v3/management/__pycache__/user_blocks.cpython-37.pyc} +0 -0
  38. usr/local/lib/{python3.6/site-packages/auth0/v3/management/__pycache__/users.cpython-36.pyc → python3.7/site-packages/auth0/v3/management/__pycache__/users.cpython-37.pyc} +0 -0
  39. usr/local/lib/python3.7/site-packages/auth0/v3/management/__pycache__/users_by_email.cpython-37.pyc +0 -0
  40. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/auth0.py +19 -15
  41. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/client_grants.py +17 -4
  42. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/clients.py +18 -8
  43. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/connections.py +20 -9
  44. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/device_credentials.py +3 -3
  45. usr/local/lib/python3.7/site-packages/auth0/v3/management/email_templates.py +65 -0
  46. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/emails.py +3 -3
  47. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/logs.py +3 -3
  48. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/resource_servers.py +17 -2
  49. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/rest.py +14 -11
  50. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/rules.py +25 -11
  51. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/tenants.py +3 -3
  52. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/users.py +7 -7
  53. usr/local/lib/python3.7/site-packages/auth0/v3/management/users_by_email.py +44 -0
  54. usr/local/lib/python3.7/site-packages/auth0/v3/test/__pycache__/__init__.cpython-37.pyc +0 -0
  55. usr/local/lib/python3.7/site-packages/auth0/v3/test/authentication/__pycache__/__init__.cpython-37.pyc +0 -0
  56. usr/local/lib/{python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_authorize_client.cpython-36.pyc → python3.7/site-packages/auth0/v3/test/authentication/__pycache__/test_authorize_client.cpython-37.pyc} +0 -0
  57. usr/local/lib/python3.7/site-packages/auth0/v3/test/authentication/__pycache__/test_base.cpython-37.pyc +0 -0
  58. usr/local/lib/{python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_database.cpython-36.pyc → python3.7/site-packages/auth0/v3/test/authentication/__pycache__/test_database.cpython-37.pyc} +0 -0
  59. usr/local/lib/{python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_delegated.cpython-36.pyc → python3.7/site-packages/auth0/v3/test/authentication/__pycache__/test_delegated.cpython-37.pyc} +0 -0
  60. usr/local/lib/{python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_enterprise.cpython-36.pyc → python3.7/site-packages/auth0/v3/test/authentication/__pycache__/test_enterprise.cpython-37.pyc} +0 -0
  61. usr/local/lib/{python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_get_token.cpython-36.pyc → python3.7/site-packages/auth0/v3/test/authentication/__pycache__/test_get_token.cpython-37.pyc} +0 -0
  62. usr/local/lib/{python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_logout.cpython-36.pyc → python3.7/site-packages/auth0/v3/test/authentication/__pycache__/test_logout.cpython-37.pyc} +0 -0
  63. usr/local/lib/{python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_passwordless.cpython-36.pyc → python3.7/site-packages/auth0/v3/test/authentication/__pycache__/test_passwordless.cpython-37.pyc} +0 -0
  64. usr/local/lib/{python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_social.cpython-36.pyc → python3.7/site-packages/auth0/v3/test/authentication/__pycache__/test_social.cpython-37.pyc} +0 -0
  65. usr/local/lib/{python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_users.cpython-36.pyc → python3.7/site-packages/auth0/v3/test/authentication/__pycache__/test_users.cpython-37.pyc} +0 -0
  66. usr/local/lib/python3.7/site-packages/auth0/v3/test/management/__pycache__/__init__.cpython-37.pyc +0 -0
  67. usr/local/lib/{python3.6/site-packages/auth0/v3/test/management/__pycache__/test_blacklists.cpython-36.pyc → python3.7/site-packages/auth0/v3/test/management/__pycache__/test_blacklists.cpython-37.pyc} +0 -0
  68. usr/local/lib/python3.7/site-packages/auth0/v3/test/management/__pycache__/test_client_grants.cpython-37.pyc +0 -0
  69. usr/local/lib/python3.7/site-packages/auth0/v3/test/management/__pycache__/test_clients.cpython-37.pyc +0 -0
  70. usr/local/lib/python3.7/site-packages/auth0/v3/test/management/__pycache__/test_connections.cpython-37.pyc +0 -0
  71. usr/local/lib/{python3.6/site-packages/auth0/v3/test/management/__pycache__/test_device_credentials.cpython-36.pyc → python3.7/site-packages/auth0/v3/test/management/__pycache__/test_device_credentials.cpython-37.pyc} +0 -0
  72. usr/local/lib/python3.7/site-packages/auth0/v3/test/management/__pycache__/test_email_endpoints.cpython-37.pyc +0 -0
  73. usr/local/lib/{python3.6/site-packages/auth0/v3/test/management/__pycache__/test_emails.cpython-36.pyc → python3.7/site-packages/auth0/v3/test/management/__pycache__/test_emails.cpython-37.pyc} +0 -0
  74. usr/local/lib/{python3.6/site-packages/auth0/v3/test/management/__pycache__/test_guardian.cpython-36.pyc → python3.7/site-packages/auth0/v3/test/management/__pycache__/test_guardian.cpython-37.pyc} +0 -0
  75. usr/local/lib/{python3.6/site-packages/auth0/v3/test/management/__pycache__/test_jobs.cpython-36.pyc → python3.7/site-packages/auth0/v3/test/management/__pycache__/test_jobs.cpython-37.pyc} +0 -0
  76. usr/local/lib/python3.7/site-packages/auth0/v3/test/management/__pycache__/test_logs.cpython-37.pyc +0 -0
  77. usr/local/lib/python3.7/site-packages/auth0/v3/test/management/__pycache__/test_resource_servers.cpython-37.pyc +0 -0
  78. usr/local/lib/python3.7/site-packages/auth0/v3/test/management/__pycache__/test_rest.cpython-37.pyc +0 -0
  79. usr/local/lib/python3.7/site-packages/auth0/v3/test/management/__pycache__/test_rules.cpython-37.pyc +0 -0
  80. usr/local/lib/python3.7/site-packages/auth0/v3/test/management/__pycache__/test_stats.cpython-37.pyc +0 -0
  81. usr/local/lib/{python3.6/site-packages/auth0/v3/test/management/__pycache__/test_tenants.cpython-36.pyc → python3.7/site-packages/auth0/v3/test/management/__pycache__/test_tenants.cpython-37.pyc} +0 -0
  82. usr/local/lib/python3.7/site-packages/auth0/v3/test/management/__pycache__/test_tickets.cpython-37.pyc +0 -0
  83. usr/local/lib/{python3.6/site-packages/auth0/v3/test/management/__pycache__/test_user_blocks.cpython-36.pyc → python3.7/site-packages/auth0/v3/test/management/__pycache__/test_user_blocks.cpython-37.pyc} +0 -0
  84. usr/local/lib/{python3.6/site-packages/auth0/v3/test/management/__pycache__/test_users.cpython-36.pyc → python3.7/site-packages/auth0/v3/test/management/__pycache__/test_users.cpython-37.pyc} +0 -0
  85. usr/local/lib/python3.7/site-packages/auth0/v3/test/management/__pycache__/test_users_by_email.cpython-37.pyc +0 -0
  86. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/management/test_client_grants.py +29 -3
  87. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/management/test_clients.py +33 -2
  88. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/management/test_connections.py +38 -2
  89. usr/local/lib/python3.7/site-packages/auth0/v3/test/management/test_email_endpoints.py +41 -0
  90. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/management/test_resource_servers.py +19 -1
  91. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/management/test_rest.py +58 -1
  92. usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/management/test_rules.py +20 -7
  93. usr/local/lib/python3.7/site-packages/auth0/v3/test/management/test_users_by_email.py +37 -0
  94. usr/local/lib/{python3.6/site-packages/auth0_python-3.2.2-py3.6.egg-info → python3.7/site-packages/auth0_python-3.3.0-py3.7.egg-info}/PKG-INFO +1 -1
  95. usr/local/lib/{python3.6/site-packages/auth0_python-3.2.2-py3.6.egg-info → python3.7/site-packages/auth0_python-3.3.0-py3.7.egg-info}/SOURCES.txt +4 -0
  96. usr/local/lib/python3.6/site-packages/auth0/__init__.py +0 -1
  97. usr/local/lib/python3.6/site-packages/auth0/__pycache__/__init__.cpython-36.pyc +0 -0
  98. usr/local/lib/python3.6/site-packages/auth0/v3/__pycache__/__init__.cpython-36.pyc +0 -0
  99. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/__init__.cpython-36.pyc +0 -0
  100. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/auth0.cpython-36.pyc +0 -0
  101. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/client_grants.cpython-36.pyc +0 -0
  102. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/clients.cpython-36.pyc +0 -0
  103. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/resource_servers.cpython-36.pyc +0 -0
  104. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/rest.cpython-36.pyc +0 -0
  105. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/rules.cpython-36.pyc +0 -0
  106. usr/local/lib/python3.6/site-packages/auth0/v3/test/__pycache__/__init__.cpython-36.pyc +0 -0
  107. usr/local/lib/python3.6/site-packages/auth0/v3/test/authentication/__pycache__/__init__.cpython-36.pyc +0 -0
  108. usr/local/lib/python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_base.cpython-36.pyc +0 -0
  109. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/__init__.cpython-36.pyc +0 -0
  110. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_client_grants.cpython-36.pyc +0 -0
  111. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_clients.cpython-36.pyc +0 -0
  112. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_connections.cpython-36.pyc +0 -0
  113. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_logs.cpython-36.pyc +0 -0
  114. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_resource_servers.cpython-36.pyc +0 -0
  115. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_rest.cpython-36.pyc +0 -0
  116. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_rules.cpython-36.pyc +0 -0
  117. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_stats.cpython-36.pyc +0 -0
  118. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_tickets.cpython-36.pyc +0 -0
  119. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/__init__.py +0 -0
  120. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/authentication/__init__.py +0 -0
  121. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/authentication/authorize_client.py +0 -0
  122. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/authentication/base.py +0 -0
  123. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/authentication/database.py +0 -0
  124. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/authentication/delegated.py +0 -0
  125. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/authentication/enterprise.py +0 -0
  126. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/authentication/logout.py +0 -0
  127. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/authentication/social.py +0 -0
  128. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/authentication/users.py +0 -0
  129. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/exceptions.py +0 -0
  130. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/blacklists.py +0 -0
  131. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/guardian.py +0 -0
  132. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/jobs.py +0 -0
  133. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/stats.py +0 -0
  134. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/tickets.py +0 -0
  135. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/management/user_blocks.py +0 -0
  136. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/__init__.py +0 -0
  137. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/authentication/__init__.py +0 -0
  138. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/authentication/test_authorize_client.py +0 -0
  139. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/authentication/test_base.py +0 -0
  140. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/authentication/test_database.py +0 -0
  141. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/authentication/test_delegated.py +0 -0
  142. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/authentication/test_enterprise.py +0 -0
  143. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/authentication/test_get_token.py +0 -0
  144. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/authentication/test_logout.py +0 -0
  145. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/authentication/test_passwordless.py +0 -0
  146. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/authentication/test_social.py +0 -0
  147. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/authentication/test_users.py +0 -0
  148. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/management/__init__.py +0 -0
  149. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/management/test_blacklists.py +0 -0
  150. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/management/test_device_credentials.py +0 -0
  151. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/management/test_emails.py +0 -0
  152. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/management/test_guardian.py +0 -0
  153. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/management/test_jobs.py +0 -0
  154. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/management/test_logs.py +0 -0
  155. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/management/test_stats.py +0 -0
  156. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/management/test_tenants.py +0 -0
  157. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/management/test_tickets.py +0 -0
  158. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/management/test_user_blocks.py +0 -0
  159. /usr/local/lib/{python3.6 → python3.7}/site-packages/auth0/v3/test/management/test_users.py +0 -0
  160. /usr/local/lib/{python3.6/site-packages/auth0_python-3.2.2-py3.6.egg-info → python3.7/site-packages/auth0_python-3.3.0-py3.7.egg-info}/dependency_links.txt +0 -0
  161. /usr/local/lib/{python3.6/site-packages/auth0_python-3.2.2-py3.6.egg-info → python3.7/site-packages/auth0_python-3.3.0-py3.7.egg-info}/requires.txt +0 -0
  162. /usr/local/lib/{python3.6/site-packages/auth0_python-3.2.2-py3.6.egg-info → python3.7/site-packages/auth0_python-3.3.0-py3.7.egg-info}/top_level.txt +0 -0
@@ -0,0 +1 @@
1
+ __version__ = '3.3.0'
@@ -30,7 +30,7 @@ class GetToken(AuthenticationBase):
30
30
 
31
31
  code (str): The Authorization Code received from the /authorize Calls
32
32
 
33
- redirect_uri (srt, optional): This is required only if it was set at
33
+ redirect_uri (str, optional): This is required only if it was set at
34
34
  the GET /authorize endpoint. The values must match
35
35
 
36
36
  Returns:
@@ -67,7 +67,7 @@ class GetToken(AuthenticationBase):
67
67
 
68
68
  code (str): The Authorization Code received from the /authorize Calls
69
69
 
70
- redirect_uri (srt, optional): This is required only if it was set at
70
+ redirect_uri (str, optional): This is required only if it was set at
71
71
  the GET /authorize endpoint. The values must match
72
72
 
73
73
  Returns:
@@ -146,7 +146,7 @@ class GetToken(AuthenticationBase):
146
146
 
147
147
  password (str): resource owner's Secret
148
148
 
149
- scope(srt): String value of the different scopes the client is asking for.
149
+ scope(str): String value of the different scopes the client is asking for.
150
150
  Multiple scopes are separated with whitespace.
151
151
 
152
152
  realm (str): String value of the realm the user belongs.
@@ -12,7 +12,7 @@ class Passwordless(AuthenticationBase):
12
12
  def __init__(self, domain):
13
13
  self.domain = domain
14
14
 
15
- def email(self, client_id, email, send='link', auth_params={}):
15
+ def email(self, client_id, email, send='link', auth_params=None):
16
16
  """Start flow sending an email.
17
17
 
18
18
  Given the user email address, it will send an email with:
@@ -43,7 +43,7 @@ class Passwordless(AuthenticationBase):
43
43
  'connection': 'email',
44
44
  'email': email,
45
45
  'send': send,
46
- 'authParams': auth_params,
46
+ 'authParams': auth_params
47
47
  },
48
48
  headers={'Content-Type': 'application/json'}
49
49
  )
@@ -1,10 +1,11 @@
1
1
  from .auth0 import Auth0
2
2
  from .blacklists import Blacklists
3
- from .client_grants import ClientGrants
4
3
  from .clients import Clients
4
+ from .client_grants import ClientGrants
5
5
  from .connections import Connections
6
6
  from .device_credentials import DeviceCredentials
7
7
  from .emails import Emails
8
+ from .email_templates import EmailTemplates
8
9
  from .guardian import Guardian
9
10
  from .jobs import Jobs
10
11
  from .logs import Logs
@@ -15,4 +16,4 @@ from .tenants import Tenants
15
16
  from .tickets import Tickets
16
17
  from .user_blocks import UserBlocks
17
18
  from .users import Users
18
-
19
+ from .users_by_email import UsersByEmail
@@ -1,19 +1,21 @@
1
- from .connections import Connections
1
+ from .blacklists import Blacklists
2
2
  from .clients import Clients
3
+ from .client_grants import ClientGrants
4
+ from .connections import Connections
3
5
  from .device_credentials import DeviceCredentials
4
- from .blacklists import Blacklists
5
6
  from .emails import Emails
7
+ from .email_templates import EmailTemplates
8
+ from .guardian import Guardian
6
9
  from .jobs import Jobs
10
+ from .logs import Logs
11
+ from .resource_servers import ResourceServers
7
12
  from .rules import Rules
8
13
  from .stats import Stats
9
- from .tickets import Tickets
10
- from .users import Users
11
14
  from .tenants import Tenants
12
- from .client_grants import ClientGrants
13
- from .guardian import Guardian
14
- from .logs import Logs
15
- from .resource_servers import ResourceServers
15
+ from .tickets import Tickets
16
16
  from .user_blocks import UserBlocks
17
+ from .users import Users
18
+ from .users_by_email import UsersByEmail
17
19
 
18
20
  class Auth0(object):
19
21
  """Provides easy access to all endpoint classes
@@ -25,19 +27,21 @@ class Auth0(object):
25
27
  """
26
28
 
27
29
  def __init__(self, domain, token):
30
+ self.blacklists = Blacklists(domain, token)
28
31
  self.clients = Clients(domain, token)
32
+ self.client_grants = ClientGrants(domain, token)
29
33
  self.connections = Connections(domain, token)
30
34
  self.device_credentials = DeviceCredentials(domain, token)
31
- self.blacklists = Blacklists(domain, token)
32
35
  self.emails = Emails(domain, token)
36
+ self.email_templates = EmailTemplates(domain, token)
37
+ self.guardian = Guardian(domain, token)
33
38
  self.jobs = Jobs(domain, token)
39
+ self.logs = Logs(domain, token)
40
+ self.resource_servers = ResourceServers(domain, token)
34
41
  self.rules = Rules(domain, token)
35
42
  self.stats = Stats(domain, token)
36
- self.tickets = Tickets(domain, token)
37
- self.users = Users(domain, token)
38
43
  self.tenants = Tenants(domain, token)
39
- self.client_grants = ClientGrants(domain, token)
40
- self.guardian = Guardian(domain, token)
41
- self.logs = Logs(domain, token)
42
- self.resource_servers = ResourceServers(domain, token)
44
+ self.tickets = Tickets(domain, token)
43
45
  self.user_blocks = UserBlocks(domain, token)
46
+ self.users = Users(domain, token)
47
+ self.users_by_email = UsersByEmail(domain, token)
@@ -24,15 +24,27 @@ class ClientGrants(object):
24
24
  return url + '/' + id
25
25
  return url
26
26
 
27
- def all(self, audience=None):
27
+ def all(self, audience=None, page=None, per_page=None, include_totals=False):
28
28
  """Retrieves all client grants.
29
29
 
30
30
  Args:
31
- audience (str, optional): URL Encoded audience of a Resource Server
32
- to filter
31
+ audience (str, optional): URL encoded audience of a Resource Server
32
+ to filter
33
+
34
+ page (int, optional): The result's page number (zero based).
35
+
36
+ per_page (int, optional): The amount of entries per page.
37
+
38
+ include_totals (bool, optional): True if the query summary is
39
+ to be included in the result, False otherwise.
33
40
  """
34
41
 
35
- params = {'audience': audience or None}
42
+ params = {
43
+ 'audience': audience,
44
+ 'page': page,
45
+ 'per_page': per_page,
46
+ 'include_totals': str(include_totals).lower()
47
+ }
36
48
 
37
49
  return self.client.get(self._url(), params=params)
38
50
 
@@ -62,6 +74,7 @@ class ClientGrants(object):
62
74
  id (str): The id of the client grant to modify.
63
75
 
64
76
  body (dict): Attributes to modify.
77
+ See: https://auth0.com/docs/api/management/v2#!/Client_Grants/patch_client_grants_by_id
65
78
  """
66
79
 
67
80
  return self.client.patch(self._url(id), data=body)
@@ -24,7 +24,7 @@ class Clients(object):
24
24
  return url + '/' + id
25
25
  return url
26
26
 
27
- def all(self, fields=[], include_fields=True):
27
+ def all(self, fields=None, include_fields=True, page=None, per_page=None, extra_params=None):
28
28
  """Retrieves a list of all the applications.
29
29
 
30
30
  Important: The client_secret and encryption_key attributes can only be
@@ -36,12 +36,22 @@ class Clients(object):
36
36
  retrieve all fields.
37
37
 
38
38
  include_fields (bool, optional): True if the fields specified are
39
- to be include in the result, False otherwise.
40
- """
39
+ to be included in the result, False otherwise.
41
40
 
42
- params = {'fields': ','.join(fields) or None,
43
- 'include_fields': str(include_fields).lower()}
41
+ page (int): The result's page number (zero based).
44
42
 
43
+ per_page (int, optional): The amount of entries per page.
44
+
45
+ extra_params (dictionary, optional): The extra parameters to add to
46
+ the request. The fields, include_fields, page and per_page values
47
+ specified as parameters take precedence over the ones defined here.
48
+ """
49
+ params = extra_params or {}
50
+ params['fields'] = fields and ','.join(fields) or None
51
+ params['include_fields'] = str(include_fields).lower()
52
+ params['page'] = page
53
+ params['per_page'] = per_page
54
+
45
55
  return self.client.get(self._url(), params=params)
46
56
 
47
57
  def create(self, body):
@@ -54,7 +64,7 @@ class Clients(object):
54
64
 
55
65
  return self.client.post(self._url(), data=body)
56
66
 
57
- def get(self, id, fields=[], include_fields=True):
67
+ def get(self, id, fields=None, include_fields=True):
58
68
  """Retrieves an application by its id.
59
69
 
60
70
  Important: The client_secret, encryption_key and signing_keys
@@ -68,10 +78,10 @@ class Clients(object):
68
78
  retrieve all fields.
69
79
 
70
80
  include_fields (bool, optional): True if the fields specified are
71
- to be include in the result, False otherwise.
81
+ to be included in the result, False otherwise.
72
82
  """
73
83
 
74
- params = {'fields': ','.join(fields) or None,
84
+ params = {'fields': fields and ','.join(fields) or None,
75
85
  'include_fields': str(include_fields).lower()}
76
86
 
77
87
  return self.client.get(self._url(id), params=params)
@@ -23,7 +23,7 @@ class Connections(object):
23
23
  return url + '/' + id
24
24
  return url
25
25
 
26
- def all(self, strategy=None, fields=[], include_fields=True):
26
+ def all(self, strategy=None, fields=None, include_fields=True, page=None, per_page=None, extra_params=None):
27
27
  """Retrieves all connections.
28
28
 
29
29
  Args:
@@ -35,19 +35,30 @@ class Connections(object):
35
35
  retrieve all fields.
36
36
 
37
37
  include_fields (bool, optional): True if the fields specified are
38
- to be include in the result, False otherwise.
38
+ to be included in the result, False otherwise.
39
+
40
+ page (int): The result's page number (zero based).
41
+
42
+ per_page (int, optional): The amount of entries per page.
43
+
44
+ extra_params (dictionary, optional): The extra parameters to add to
45
+ the request. The fields, include_fields, page and per_page values
46
+ specified as parameters take precedence over the ones defined here.
39
47
 
40
48
  Returns:
41
49
  A list of connection objects.
42
50
  """
43
-
44
- params = {'strategy': strategy or None,
45
- 'fields': ','.join(fields) or None,
46
- 'include_fields': str(include_fields).lower()}
51
+
52
+ params = extra_params or {}
53
+ params['strategy'] = strategy or None
54
+ params['fields'] = fields and ','.join(fields) or None
55
+ params['include_fields'] = str(include_fields).lower()
56
+ params['page'] = page
57
+ params['per_page'] = per_page
47
58
 
48
59
  return self.client.get(self._url(), params=params)
49
60
 
50
- def get(self, id, fields=[], include_fields=True):
61
+ def get(self, id, fields=None, include_fields=True):
51
62
  """Retrieve connection by id.
52
63
 
53
64
  Args:
@@ -58,13 +69,13 @@ class Connections(object):
58
69
  retrieve all fields.
59
70
 
60
71
  include_fields (bool, optional): True if the fields specified are
61
- to be include in the result, False otherwise.
72
+ to be included in the result, False otherwise.
62
73
 
63
74
  Returns:
64
75
  A connection object.
65
76
  """
66
77
 
67
- params = {'fields': ','.join(fields) or None,
78
+ params = {'fields': fields and ','.join(fields) or None,
68
79
  'include_fields': str(include_fields).lower()}
69
80
 
70
81
  return self.client.get(self._url(id), params=params)
@@ -24,7 +24,7 @@ class DeviceCredentials(object):
24
24
  return url + '/' + id
25
25
  return url
26
26
 
27
- def get(self, user_id, client_id, type, fields=[], include_fields=True):
27
+ def get(self, user_id, client_id, type, fields=None, include_fields=True):
28
28
  """List device credentials.
29
29
 
30
30
  Args:
@@ -39,12 +39,12 @@ class DeviceCredentials(object):
39
39
  retrieve all fields
40
40
 
41
41
  include_fields (bool, optional): True if the fields specified are
42
- to be excluded from the result, false otherwise
42
+ to be included in the result, False otherwise
43
43
  (defaults to true)
44
44
  """
45
45
 
46
46
  params = {
47
- 'fields': ','.join(fields) or None,
47
+ 'fields': fields and ','.join(fields) or None,
48
48
  'include_fields': str(include_fields).lower(),
49
49
  'user_id': user_id,
50
50
  'client_id': client_id,
@@ -0,0 +1,65 @@
1
+ from .rest import RestClient
2
+
3
+
4
+ class EmailTemplates(object):
5
+
6
+ """Auth0 email templates endpoints
7
+
8
+ Args:
9
+ domain (str): Your Auth0 domain, e.g: 'username.auth0.com'
10
+
11
+ token (str): Management API v2 Token
12
+
13
+ telemetry (bool, optional): Enable or disable Telemetry
14
+ (defaults to True)
15
+ """
16
+
17
+ def __init__(self, domain, token, telemetry=True):
18
+ self.domain = domain
19
+ self.client = RestClient(jwt=token, telemetry=telemetry)
20
+
21
+ def _url(self, id=None):
22
+ url = 'https://%s/api/v2/email-templates' % self.domain
23
+ if id is not None:
24
+ return url + '/' + id
25
+ return url
26
+
27
+ def create(self, body):
28
+ """Create a new email template.
29
+
30
+ Args:
31
+ body (dict): Attributes for the new email template.
32
+ See: https://auth0.com/docs/api/management/v2#!/Email_Templates/post_email_templates
33
+ """
34
+
35
+ return self.client.post(self._url(), data=body)
36
+
37
+
38
+ def get(self, template_name):
39
+ """Retrieves an email template by its name.
40
+
41
+ Args:
42
+ template_name (str): Name of the email template to get.
43
+ Must be one of: 'verify_email', 'reset_email', 'welcome_email',
44
+ 'blocked_account', 'stolen_credentials', 'enrollment_email',
45
+ 'change_password', 'password_reset', 'mfa_oob_code'.
46
+ See: https://auth0.com/docs/api/management/v2#!/Email_Templates/get_email_templates_by_templateName
47
+ """
48
+
49
+ return self.client.get(self._url(template_name))
50
+
51
+
52
+ def update(self, template_name, body):
53
+ """Update an existing email template.
54
+
55
+ Args:
56
+ template_name (str): Name of the email template to update.
57
+ Must be one of: 'verify_email', 'reset_email', 'welcome_email',
58
+ 'blocked_account', 'stolen_credentials', 'enrollment_email',
59
+ 'change_password', 'password_reset', 'mfa_oob_code'.
60
+
61
+ body (dict): Attributes to update on the email template.
62
+ See: https://auth0.com/docs/api/management/v2#!/Email_Templates/patch_email_templates_by_templateName
63
+ """
64
+
65
+ return self.client.patch(self._url(template_name), data=body)
@@ -24,7 +24,7 @@ class Emails(object):
24
24
  return url + '/' + id
25
25
  return url
26
26
 
27
- def get(self, fields=[], include_fields=True):
27
+ def get(self, fields=None, include_fields=True):
28
28
  """Get the email provider.
29
29
 
30
30
  Args:
@@ -33,9 +33,9 @@ class Emails(object):
33
33
  to retrieve all fields.
34
34
 
35
35
  include_fields (bool, optional): True if the fields specified are
36
- to be include in the result, False otherwise.
36
+ to be included in the result, False otherwise.
37
37
  """
38
- params = {'fields': ','.join(fields) or None,
38
+ params = {'fields': fields and ','.join(fields) or None,
39
39
  'include_fields': str(include_fields).lower()}
40
40
 
41
41
  return self.client.get(self._url(), params=params)
@@ -44,10 +44,10 @@ class Logs(object):
44
44
  retrieve all fields.
45
45
 
46
46
  include_fields (bool, optional): True if the fields specified are
47
- to be include in the result, False otherwise.
47
+ to be included in the result, False otherwise.
48
48
 
49
- include_totals (bool, optional): true if a query summary must be
50
- included in the result, false otherwise. Default false.
49
+ include_totals (bool, optional): True if the query summary is
50
+ to be included in the result, False otherwise.
51
51
 
52
52
  from_param (str, optional): Log Event Id to start retrieving logs. You can
53
53
  limit the amount of logs using the take parameter
@@ -34,11 +34,25 @@ class ResourceServers(object):
34
34
 
35
35
  return self.client.post(self._url(), data=body)
36
36
 
37
- def get_all(self):
37
+ def get_all(self, page=None, per_page=None, include_totals=False):
38
38
  """Retrieves all resource servers
39
+
40
+ Args:
41
+ page (int, optional): The result's page number (zero based).
42
+
43
+ per_page (int, optional): The amount of entries per page.
44
+
45
+ include_totals (bool, optional): True if the query summary is
46
+ to be included in the result, False otherwise.
39
47
  """
40
48
 
41
- return self.client.get(self._url())
49
+ params = {
50
+ 'page': page,
51
+ 'per_page': per_page,
52
+ 'include_totals': str(include_totals).lower()
53
+ }
54
+
55
+ return self.client.get(self._url(), params=params)
42
56
 
43
57
  def get(self, id):
44
58
  """Retrieves a resource server by its id.
@@ -65,6 +79,7 @@ class ResourceServers(object):
65
79
  id (str): The id of the resource server to update.
66
80
 
67
81
  body (dict): Attributes to modify.
82
+ See: https://auth0.com/docs/api/management/v2#!/Resource_Servers/patch_resource_servers_by_id
68
83
  """
69
84
 
70
85
  return self.client.patch(self._url(id), data=body)
@@ -47,7 +47,7 @@ class RestClient(object):
47
47
  else:
48
48
  self.base_headers = {}
49
49
 
50
- def get(self, url, params={}):
50
+ def get(self, url, params=None):
51
51
  headers = self.base_headers.copy()
52
52
  headers.update({
53
53
  'Authorization': 'Bearer %s' % self.jwt,
@@ -56,17 +56,17 @@ class RestClient(object):
56
56
  response = requests.get(url, params=params, headers=headers)
57
57
  return self._process_response(response)
58
58
 
59
- def post(self, url, data={}):
59
+ def post(self, url, data=None):
60
60
  headers = self.base_headers.copy()
61
61
  headers.update({
62
62
  'Authorization': 'Bearer %s' % self.jwt,
63
63
  'Content-Type': 'application/json'
64
64
  })
65
65
 
66
- response = requests.post(url, data=json.dumps(data), headers=headers)
66
+ response = requests.post(url, data=json.dumps(data or {}), headers=headers)
67
67
  return self._process_response(response)
68
68
 
69
- def file_post(self, url, data={}, files={}):
69
+ def file_post(self, url, data=None, files=None):
70
70
  headers = self.base_headers.copy()
71
71
  headers.pop('Content-Type', None)
72
72
  headers.update({
@@ -76,33 +76,33 @@ class RestClient(object):
76
76
  response = requests.post(url, data=data, files=files, headers=headers)
77
77
  return self._process_response(response)
78
78
 
79
- def patch(self, url, data={}):
79
+ def patch(self, url, data=None):
80
80
  headers = self.base_headers.copy()
81
81
  headers.update({
82
82
  'Authorization': 'Bearer %s' % self.jwt,
83
83
  'Content-Type': 'application/json'
84
84
  })
85
85
 
86
- response = requests.patch(url, data=json.dumps(data), headers=headers)
86
+ response = requests.patch(url, data=json.dumps(data or {}), headers=headers)
87
87
  return self._process_response(response)
88
88
 
89
- def put(self, url, data={}):
89
+ def put(self, url, data=None):
90
90
  headers = self.base_headers.copy()
91
91
  headers.update({
92
92
  'Authorization': 'Bearer %s' % self.jwt,
93
93
  'Content-Type': 'application/json'
94
94
  })
95
95
 
96
- response = requests.put(url, data=json.dumps(data), headers=headers)
96
+ response = requests.put(url, data=json.dumps(data or {}), headers=headers)
97
97
  return self._process_response(response)
98
98
 
99
- def delete(self, url, params={}):
99
+ def delete(self, url, params=None):
100
100
  headers = self.base_headers.copy()
101
101
  headers.update({
102
102
  'Authorization': 'Bearer %s' % self.jwt,
103
103
  })
104
104
 
105
- response = requests.delete(url, headers=headers, params=params)
105
+ response = requests.delete(url, headers=headers, params=params or {})
106
106
  return self._process_response(response)
107
107
 
108
108
  def _process_response(self, response):
@@ -153,7 +153,10 @@ class JsonResponse(Response):
153
153
  return UNKNOWN_ERROR
154
154
 
155
155
  def _error_message(self):
156
- return self._content.get('error', self._content.get('message', ''))
156
+ message = self._content.get('message', '')
157
+ if message is not None and message != '':
158
+ return message
159
+ return self._content.get('error', '')
157
160
 
158
161
  class PlainResponse(Response):
159
162
  def __init__(self, response):