auth0-python 3.1.4__tar.gz → 3.2.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 (196) hide show
  1. Library/Python/2.7/site-packages/auth0/__init__.py +1 -0
  2. Library/Python/2.7/site-packages/auth0/__init__.pyc +0 -0
  3. Library/Python/2.7/site-packages/auth0/v3/__init__.pyc +0 -0
  4. Library/Python/2.7/site-packages/auth0/v3/authentication/__init__.pyc +0 -0
  5. Library/Python/2.7/site-packages/auth0/v3/authentication/authorize_client.pyc +0 -0
  6. Library/Python/2.7/site-packages/auth0/v3/authentication/base.py +78 -0
  7. Library/Python/2.7/site-packages/auth0/v3/authentication/base.pyc +0 -0
  8. Library/Python/2.7/site-packages/auth0/v3/authentication/database.pyc +0 -0
  9. Library/Python/2.7/site-packages/auth0/v3/authentication/delegated.pyc +0 -0
  10. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/authentication/enterprise.py +1 -1
  11. Library/Python/2.7/site-packages/auth0/v3/authentication/enterprise.pyc +0 -0
  12. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/authentication/get_token.py +1 -1
  13. usr/local/lib/python3.6/site-packages/auth0/v3/authentication/__pycache__/get_token.cpython-36.pyc → Library/Python/2.7/site-packages/auth0/v3/authentication/get_token.pyc +0 -0
  14. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/authentication/logout.py +1 -1
  15. Library/Python/2.7/site-packages/auth0/v3/authentication/logout.pyc +0 -0
  16. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/authentication/passwordless.py +1 -1
  17. Library/Python/2.7/site-packages/auth0/v3/authentication/passwordless.pyc +0 -0
  18. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/authentication/social.py +1 -1
  19. Library/Python/2.7/site-packages/auth0/v3/authentication/social.pyc +0 -0
  20. Library/Python/2.7/site-packages/auth0/v3/authentication/users.pyc +0 -0
  21. Library/Python/2.7/site-packages/auth0/v3/exceptions.pyc +0 -0
  22. Library/Python/2.7/site-packages/auth0/v3/management/__init__.pyc +0 -0
  23. Library/Python/2.7/site-packages/auth0/v3/management/auth0.pyc +0 -0
  24. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/blacklists.py +2 -2
  25. Library/Python/2.7/site-packages/auth0/v3/management/blacklists.pyc +0 -0
  26. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/client_grants.py +1 -1
  27. Library/Python/2.7/site-packages/auth0/v3/management/client_grants.pyc +0 -0
  28. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/clients.py +10 -10
  29. Library/Python/2.7/site-packages/auth0/v3/management/clients.pyc +0 -0
  30. Library/Python/2.7/site-packages/auth0/v3/management/connections.pyc +0 -0
  31. Library/Python/2.7/site-packages/auth0/v3/management/device_credentials.pyc +0 -0
  32. Library/Python/2.7/site-packages/auth0/v3/management/emails.pyc +0 -0
  33. Library/Python/2.7/site-packages/auth0/v3/management/guardian.pyc +0 -0
  34. Library/Python/2.7/site-packages/auth0/v3/management/jobs.pyc +0 -0
  35. Library/Python/2.7/site-packages/auth0/v3/management/logs.pyc +0 -0
  36. Library/Python/2.7/site-packages/auth0/v3/management/resource_servers.pyc +0 -0
  37. Library/Python/2.7/site-packages/auth0/v3/management/rest.pyc +0 -0
  38. Library/Python/2.7/site-packages/auth0/v3/management/rules.pyc +0 -0
  39. Library/Python/2.7/site-packages/auth0/v3/management/stats.pyc +0 -0
  40. Library/Python/2.7/site-packages/auth0/v3/management/tenants.pyc +0 -0
  41. Library/Python/2.7/site-packages/auth0/v3/management/tickets.pyc +0 -0
  42. Library/Python/2.7/site-packages/auth0/v3/management/user_blocks.pyc +0 -0
  43. Library/Python/2.7/site-packages/auth0/v3/management/users.pyc +0 -0
  44. Library/Python/2.7/site-packages/auth0/v3/test/__init__.pyc +0 -0
  45. Library/Python/2.7/site-packages/auth0/v3/test/authentication/__init__.pyc +0 -0
  46. Library/Python/2.7/site-packages/auth0/v3/test/authentication/test_authorize_client.pyc +0 -0
  47. Library/Python/2.7/site-packages/auth0/v3/test/authentication/test_base.py +99 -0
  48. Library/Python/2.7/site-packages/auth0/v3/test/authentication/test_base.pyc +0 -0
  49. Library/Python/2.7/site-packages/auth0/v3/test/authentication/test_database.pyc +0 -0
  50. Library/Python/2.7/site-packages/auth0/v3/test/authentication/test_delegated.pyc +0 -0
  51. Library/Python/2.7/site-packages/auth0/v3/test/authentication/test_enterprise.pyc +0 -0
  52. Library/Python/2.7/site-packages/auth0/v3/test/authentication/test_get_token.pyc +0 -0
  53. Library/Python/2.7/site-packages/auth0/v3/test/authentication/test_logout.pyc +0 -0
  54. Library/Python/2.7/site-packages/auth0/v3/test/authentication/test_passwordless.pyc +0 -0
  55. Library/Python/2.7/site-packages/auth0/v3/test/authentication/test_social.pyc +0 -0
  56. Library/Python/2.7/site-packages/auth0/v3/test/authentication/test_users.pyc +0 -0
  57. Library/Python/2.7/site-packages/auth0/v3/test/management/__init__.pyc +0 -0
  58. Library/Python/2.7/site-packages/auth0/v3/test/management/test_blacklists.pyc +0 -0
  59. Library/Python/2.7/site-packages/auth0/v3/test/management/test_client_grants.pyc +0 -0
  60. Library/Python/2.7/site-packages/auth0/v3/test/management/test_clients.pyc +0 -0
  61. Library/Python/2.7/site-packages/auth0/v3/test/management/test_connections.pyc +0 -0
  62. Library/Python/2.7/site-packages/auth0/v3/test/management/test_device_credentials.pyc +0 -0
  63. Library/Python/2.7/site-packages/auth0/v3/test/management/test_emails.pyc +0 -0
  64. Library/Python/2.7/site-packages/auth0/v3/test/management/test_guardian.pyc +0 -0
  65. Library/Python/2.7/site-packages/auth0/v3/test/management/test_jobs.pyc +0 -0
  66. Library/Python/2.7/site-packages/auth0/v3/test/management/test_logs.pyc +0 -0
  67. Library/Python/2.7/site-packages/auth0/v3/test/management/test_resource_servers.pyc +0 -0
  68. Library/Python/2.7/site-packages/auth0/v3/test/management/test_rest.pyc +0 -0
  69. Library/Python/2.7/site-packages/auth0/v3/test/management/test_rules.pyc +0 -0
  70. Library/Python/2.7/site-packages/auth0/v3/test/management/test_stats.pyc +0 -0
  71. Library/Python/2.7/site-packages/auth0/v3/test/management/test_tenants.pyc +0 -0
  72. Library/Python/2.7/site-packages/auth0/v3/test/management/test_tickets.pyc +0 -0
  73. Library/Python/2.7/site-packages/auth0/v3/test/management/test_user_blocks.pyc +0 -0
  74. Library/Python/2.7/site-packages/auth0/v3/test/management/test_users.pyc +0 -0
  75. {usr/local/lib/python3.6/site-packages/auth0_python-3.1.4-py3.6.egg-info → Library/Python/2.7/site-packages/auth0_python-3.2.0-py2.7.egg-info}/PKG-INFO +1 -1
  76. usr/local/lib/python3.6/site-packages/auth0/__init__.py +0 -1
  77. usr/local/lib/python3.6/site-packages/auth0/__pycache__/__init__.cpython-36.pyc +0 -0
  78. usr/local/lib/python3.6/site-packages/auth0/v3/__pycache__/__init__.cpython-36.pyc +0 -0
  79. usr/local/lib/python3.6/site-packages/auth0/v3/__pycache__/exceptions.cpython-36.pyc +0 -0
  80. usr/local/lib/python3.6/site-packages/auth0/v3/authentication/__pycache__/__init__.cpython-36.pyc +0 -0
  81. usr/local/lib/python3.6/site-packages/auth0/v3/authentication/__pycache__/authorize_client.cpython-36.pyc +0 -0
  82. usr/local/lib/python3.6/site-packages/auth0/v3/authentication/__pycache__/base.cpython-36.pyc +0 -0
  83. usr/local/lib/python3.6/site-packages/auth0/v3/authentication/__pycache__/database.cpython-36.pyc +0 -0
  84. usr/local/lib/python3.6/site-packages/auth0/v3/authentication/__pycache__/delegated.cpython-36.pyc +0 -0
  85. usr/local/lib/python3.6/site-packages/auth0/v3/authentication/__pycache__/enterprise.cpython-36.pyc +0 -0
  86. usr/local/lib/python3.6/site-packages/auth0/v3/authentication/__pycache__/logout.cpython-36.pyc +0 -0
  87. usr/local/lib/python3.6/site-packages/auth0/v3/authentication/__pycache__/passwordless.cpython-36.pyc +0 -0
  88. usr/local/lib/python3.6/site-packages/auth0/v3/authentication/__pycache__/social.cpython-36.pyc +0 -0
  89. usr/local/lib/python3.6/site-packages/auth0/v3/authentication/__pycache__/users.cpython-36.pyc +0 -0
  90. usr/local/lib/python3.6/site-packages/auth0/v3/authentication/base.py +0 -26
  91. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/__init__.cpython-36.pyc +0 -0
  92. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/auth0.cpython-36.pyc +0 -0
  93. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/blacklists.cpython-36.pyc +0 -0
  94. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/client_grants.cpython-36.pyc +0 -0
  95. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/clients.cpython-36.pyc +0 -0
  96. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/connections.cpython-36.pyc +0 -0
  97. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/device_credentials.cpython-36.pyc +0 -0
  98. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/emails.cpython-36.pyc +0 -0
  99. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/guardian.cpython-36.pyc +0 -0
  100. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/jobs.cpython-36.pyc +0 -0
  101. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/logs.cpython-36.pyc +0 -0
  102. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/resource_servers.cpython-36.pyc +0 -0
  103. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/rest.cpython-36.pyc +0 -0
  104. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/rules.cpython-36.pyc +0 -0
  105. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/stats.cpython-36.pyc +0 -0
  106. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/tenants.cpython-36.pyc +0 -0
  107. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/tickets.cpython-36.pyc +0 -0
  108. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/user_blocks.cpython-36.pyc +0 -0
  109. usr/local/lib/python3.6/site-packages/auth0/v3/management/__pycache__/users.cpython-36.pyc +0 -0
  110. usr/local/lib/python3.6/site-packages/auth0/v3/test/__pycache__/__init__.cpython-36.pyc +0 -0
  111. usr/local/lib/python3.6/site-packages/auth0/v3/test/authentication/__pycache__/__init__.cpython-36.pyc +0 -0
  112. usr/local/lib/python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_authorize_client.cpython-36.pyc +0 -0
  113. usr/local/lib/python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_base.cpython-36.pyc +0 -0
  114. usr/local/lib/python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_database.cpython-36.pyc +0 -0
  115. usr/local/lib/python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_delegated.cpython-36.pyc +0 -0
  116. usr/local/lib/python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_enterprise.cpython-36.pyc +0 -0
  117. usr/local/lib/python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_get_token.cpython-36.pyc +0 -0
  118. usr/local/lib/python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_logout.cpython-36.pyc +0 -0
  119. usr/local/lib/python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_passwordless.cpython-36.pyc +0 -0
  120. usr/local/lib/python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_social.cpython-36.pyc +0 -0
  121. usr/local/lib/python3.6/site-packages/auth0/v3/test/authentication/__pycache__/test_users.cpython-36.pyc +0 -0
  122. usr/local/lib/python3.6/site-packages/auth0/v3/test/authentication/test_base.py +0 -37
  123. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/__init__.cpython-36.pyc +0 -0
  124. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_blacklists.cpython-36.pyc +0 -0
  125. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_client_grants.cpython-36.pyc +0 -0
  126. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_clients.cpython-36.pyc +0 -0
  127. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_connections.cpython-36.pyc +0 -0
  128. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_device_credentials.cpython-36.pyc +0 -0
  129. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_emails.cpython-36.pyc +0 -0
  130. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_guardian.cpython-36.pyc +0 -0
  131. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_jobs.cpython-36.pyc +0 -0
  132. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_logs.cpython-36.pyc +0 -0
  133. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_resource_servers.cpython-36.pyc +0 -0
  134. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_rest.cpython-36.pyc +0 -0
  135. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_rules.cpython-36.pyc +0 -0
  136. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_stats.cpython-36.pyc +0 -0
  137. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_tenants.cpython-36.pyc +0 -0
  138. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_tickets.cpython-36.pyc +0 -0
  139. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_user_blocks.cpython-36.pyc +0 -0
  140. usr/local/lib/python3.6/site-packages/auth0/v3/test/management/__pycache__/test_users.cpython-36.pyc +0 -0
  141. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/__init__.py +0 -0
  142. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/authentication/__init__.py +0 -0
  143. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/authentication/authorize_client.py +0 -0
  144. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/authentication/database.py +0 -0
  145. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/authentication/delegated.py +0 -0
  146. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/authentication/users.py +0 -0
  147. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/exceptions.py +0 -0
  148. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/__init__.py +0 -0
  149. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/auth0.py +0 -0
  150. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/connections.py +0 -0
  151. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/device_credentials.py +0 -0
  152. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/emails.py +0 -0
  153. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/guardian.py +0 -0
  154. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/jobs.py +0 -0
  155. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/logs.py +0 -0
  156. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/resource_servers.py +0 -0
  157. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/rest.py +0 -0
  158. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/rules.py +0 -0
  159. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/stats.py +0 -0
  160. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/tenants.py +0 -0
  161. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/tickets.py +0 -0
  162. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/user_blocks.py +0 -0
  163. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/management/users.py +0 -0
  164. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/__init__.py +0 -0
  165. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/authentication/__init__.py +0 -0
  166. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/authentication/test_authorize_client.py +0 -0
  167. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/authentication/test_database.py +0 -0
  168. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/authentication/test_delegated.py +0 -0
  169. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/authentication/test_enterprise.py +0 -0
  170. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/authentication/test_get_token.py +0 -0
  171. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/authentication/test_logout.py +0 -0
  172. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/authentication/test_passwordless.py +0 -0
  173. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/authentication/test_social.py +0 -0
  174. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/authentication/test_users.py +0 -0
  175. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/management/__init__.py +0 -0
  176. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/management/test_blacklists.py +0 -0
  177. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/management/test_client_grants.py +0 -0
  178. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/management/test_clients.py +0 -0
  179. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/management/test_connections.py +0 -0
  180. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/management/test_device_credentials.py +0 -0
  181. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/management/test_emails.py +0 -0
  182. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/management/test_guardian.py +0 -0
  183. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/management/test_jobs.py +0 -0
  184. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/management/test_logs.py +0 -0
  185. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/management/test_resource_servers.py +0 -0
  186. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/management/test_rest.py +0 -0
  187. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/management/test_rules.py +0 -0
  188. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/management/test_stats.py +0 -0
  189. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/management/test_tenants.py +0 -0
  190. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/management/test_tickets.py +0 -0
  191. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/management/test_user_blocks.py +0 -0
  192. {usr/local/lib/python3.6 → Library/Python/2.7}/site-packages/auth0/v3/test/management/test_users.py +0 -0
  193. {usr/local/lib/python3.6/site-packages/auth0_python-3.1.4-py3.6.egg-info → Library/Python/2.7/site-packages/auth0_python-3.2.0-py2.7.egg-info}/SOURCES.txt +0 -0
  194. {usr/local/lib/python3.6/site-packages/auth0_python-3.1.4-py3.6.egg-info → Library/Python/2.7/site-packages/auth0_python-3.2.0-py2.7.egg-info}/dependency_links.txt +0 -0
  195. {usr/local/lib/python3.6/site-packages/auth0_python-3.1.4-py3.6.egg-info → Library/Python/2.7/site-packages/auth0_python-3.2.0-py2.7.egg-info}/requires.txt +0 -0
  196. {usr/local/lib/python3.6/site-packages/auth0_python-3.1.4-py3.6.egg-info → Library/Python/2.7/site-packages/auth0_python-3.2.0-py2.7.egg-info}/top_level.txt +0 -0
@@ -0,0 +1 @@
1
+ __version__ = '3.2.0'
@@ -0,0 +1,78 @@
1
+ import json
2
+ import requests
3
+ from ..exceptions import Auth0Error
4
+
5
+ UNKNOWN_ERROR = 'a0.sdk.internal.unknown'
6
+
7
+ class AuthenticationBase(object):
8
+
9
+ def post(self, url, data=None, headers=None):
10
+ response = requests.post(url=url, data=json.dumps(data),
11
+ headers=headers)
12
+ return self._process_response(response)
13
+
14
+ def get(self, url, params=None, headers=None):
15
+ return requests.get(url=url, params=params, headers=headers).text
16
+
17
+ def _process_response(self, response):
18
+ return self._parse(response).content()
19
+
20
+ def _parse(self, response):
21
+ if not response.text:
22
+ return EmptyResponse(response.status_code)
23
+ try:
24
+ return JsonResponse(response)
25
+ except ValueError:
26
+ return PlainResponse(response)
27
+
28
+ class Response(object):
29
+ def __init__(self, status_code, content):
30
+ self._status_code = status_code
31
+ self._content = content
32
+
33
+ def content(self):
34
+ if self._is_error():
35
+ raise Auth0Error(status_code=self._status_code,
36
+ error_code=self._error_code(),
37
+ message=self._error_message())
38
+ else:
39
+ return self._content
40
+
41
+ def _is_error(self):
42
+ return self._status_code is None or self._status_code >= 400
43
+
44
+ class JsonResponse(Response):
45
+ def __init__(self, response):
46
+ content = json.loads(response.text)
47
+ super().__init__(response.status_code, content)
48
+
49
+ def _error_code(self):
50
+ if 'error' in self._content:
51
+ return self._content.get('error')
52
+ elif 'code' in self._content:
53
+ return self._content.get('code')
54
+ else:
55
+ return UNKNOWN_ERROR
56
+
57
+ def _error_message(self):
58
+ return self._content.get('error_description', '')
59
+
60
+ class PlainResponse(Response):
61
+ def __init__(self, response):
62
+ super().__init__(response.status_code, response.text)
63
+
64
+ def _error_code(self):
65
+ return UNKNOWN_ERROR
66
+
67
+ def _error_message(self):
68
+ return self._content
69
+
70
+ class EmptyResponse(Response):
71
+ def __init__(self, status_code):
72
+ super().__init__(status_code, '')
73
+
74
+ def _error_code(self):
75
+ return UNKNOWN_ERROR
76
+
77
+ def _error_message(self):
78
+ return ''
@@ -16,7 +16,7 @@ class Enterprise(AuthenticationBase):
16
16
  """Get SAML2.0 Metadata.
17
17
 
18
18
  Args:
19
- client_id (str): Id of the client to get the SAML metadata for.
19
+ client_id (str): Client Id of the application to get the SAML metadata for.
20
20
  """
21
21
 
22
22
  return self.get(url='https://%s/samlp/metadata/%s' % (self.domain,
@@ -92,7 +92,7 @@ class GetToken(AuthenticationBase):
92
92
 
93
93
  This is the OAuth 2.0 grant that server processes utilize in
94
94
  order to access an API. Use this endpoint to directly request
95
- an access_token by using the Client Credentials (a Client Id and
95
+ an access_token by using the Application Credentials (a Client Id and
96
96
  a Client Secret).
97
97
 
98
98
  Args:
@@ -24,7 +24,7 @@ class Logout(AuthenticationBase):
24
24
  The URL should be included in any the appropriate Allowed Logout URLs list:
25
25
 
26
26
  Args:
27
- client_id (str): The client_id of your client.
27
+ client_id (str): The client_id of your application.
28
28
 
29
29
  returnTo (str): URL to redirect the user after the logout.
30
30
 
@@ -27,7 +27,7 @@ class Passwordless(AuthenticationBase):
27
27
  this user using email as username and code as password.
28
28
 
29
29
  Args:
30
- client_id (str): Id of the client.
30
+ client_id (str): Client Id of the application.
31
31
 
32
32
  email (str): Email address.
33
33
 
@@ -21,7 +21,7 @@ class Social(AuthenticationBase):
21
21
  Facebook, Google, Twitter and Weibo.
22
22
 
23
23
  Args:
24
- client_id (str): client name.
24
+ client_id (str): application's client id.
25
25
 
26
26
  access_token (str): social provider's access_token.
27
27
 
@@ -23,7 +23,7 @@ class Blacklists(object):
23
23
 
24
24
  Args:
25
25
  aud (str, optional): The JWT's aud claim. The client_id of the
26
- client for which it was issued.
26
+ application for which it was issued.
27
27
  """
28
28
 
29
29
  params = {
@@ -38,7 +38,7 @@ class Blacklists(object):
38
38
  Args:
39
39
  jti (str): the jti of the JWT to blacklist.
40
40
  aud (str, optional): The JWT's aud claim. The client_id of the
41
- client for which it was issued.
41
+ application for which it was issued.
42
42
  """
43
43
 
44
44
  return self.client.post(self.url, data={'jti': jti, 'aud': aud})
@@ -50,7 +50,7 @@ class ClientGrants(object):
50
50
  """Deletes a client grant.
51
51
 
52
52
  Args:
53
- id (str): Id of client to delete.
53
+ id (str): Id of client grant to delete.
54
54
  """
55
55
 
56
56
  return self.client.delete(self._url(id))
@@ -3,7 +3,7 @@ from .rest import RestClient
3
3
 
4
4
  class Clients(object):
5
5
 
6
- """Auth0 client endpoints
6
+ """Auth0 applications endpoints
7
7
 
8
8
  Args:
9
9
  domain (str): Your Auth0 domain, e.g: 'username.auth0.com'
@@ -25,7 +25,7 @@ class Clients(object):
25
25
  return url
26
26
 
27
27
  def all(self, fields=[], include_fields=True):
28
- """Retrieves a list of all client applications.
28
+ """Retrieves a list of all the applications.
29
29
 
30
30
  Important: The client_secret and encryption_key attributes can only be
31
31
  retrieved with the read:client_keys scope.
@@ -45,23 +45,23 @@ class Clients(object):
45
45
  return self.client.get(self._url(), params=params)
46
46
 
47
47
  def create(self, body):
48
- """Create a new client application.
48
+ """Create a new application.
49
49
 
50
50
  Args:
51
- body (dict): Attributes for the new client application.
51
+ body (dict): Attributes for the new application.
52
52
  See: https://auth0.com/docs/api/v2#!/Clients/post_clients
53
53
  """
54
54
 
55
55
  return self.client.post(self._url(), data=body)
56
56
 
57
57
  def get(self, id, fields=[], include_fields=True):
58
- """Retrieves a client by its id.
58
+ """Retrieves an application by its id.
59
59
 
60
60
  Important: The client_secret, encryption_key and signing_keys
61
61
  attributes can only be retrieved with the read:client_keys scope.
62
62
 
63
63
  Args:
64
- id (str): Id of the client to get.
64
+ id (str): Id of the application to get.
65
65
 
66
66
  fields (list of str, optional): A list of fields to include or
67
67
  exclude from the result (depending on include_fields). Empty to
@@ -77,22 +77,22 @@ class Clients(object):
77
77
  return self.client.get(self._url(id), params=params)
78
78
 
79
79
  def delete(self, id):
80
- """Deletes a client and all its related assets.
80
+ """Deletes an application and all its related assets.
81
81
 
82
82
  Args:
83
- id (str): Id of client to delete.
83
+ id (str): Id of application to delete.
84
84
  """
85
85
 
86
86
  return self.client.delete(self._url(id))
87
87
 
88
88
  def update(self, id, body):
89
- """Modifies a client.
89
+ """Modifies an application.
90
90
 
91
91
  Important: The client_secret, encryption_key and signing_keys
92
92
  attributes can only be updated with the update:client_keys scope.
93
93
 
94
94
  Args:
95
- id (str): Client id.
95
+ id (str): Client id of the application.
96
96
 
97
97
  body (dict): Attributes to modify.
98
98
  """
@@ -0,0 +1,99 @@
1
+ import unittest
2
+ import mock
3
+ from ...authentication.base import AuthenticationBase
4
+ from ...exceptions import Auth0Error
5
+
6
+
7
+ class TestBase(unittest.TestCase):
8
+
9
+ @mock.patch('requests.post')
10
+ def test_post(self, mock_post):
11
+ ab = AuthenticationBase()
12
+
13
+ mock_post.return_value.status_code = 200
14
+ mock_post.return_value.text = '{"x": "y"}'
15
+
16
+ data = ab.post('the-url', data={'a': 'b'}, headers={'c': 'd'})
17
+
18
+ mock_post.assert_called_with(url='the-url', data='{"a": "b"}',
19
+ headers={'c': 'd'})
20
+
21
+ self.assertEqual(data, {'x': 'y'})
22
+
23
+ @mock.patch('requests.post')
24
+ def test_post_error(self, mock_post):
25
+ ab = AuthenticationBase()
26
+
27
+ for error_status in [400, 500, None]:
28
+ mock_post.return_value.status_code = error_status
29
+ mock_post.return_value.text = '{"error": "e0",' \
30
+ '"error_description": "desc"}'
31
+
32
+ with self.assertRaises(Auth0Error) as context:
33
+ data = ab.post('the-url', data={'a': 'b'}, headers={'c': 'd'})
34
+
35
+ self.assertEqual(context.exception.status_code, error_status)
36
+ self.assertEqual(context.exception.error_code, 'e0')
37
+ self.assertEqual(context.exception.message, 'desc')
38
+
39
+ @mock.patch('requests.post')
40
+ def test_post_error_with_code_property(self, mock_post):
41
+ ab = AuthenticationBase()
42
+
43
+ for error_status in [400, 500, None]:
44
+ mock_post.return_value.status_code = error_status
45
+ mock_post.return_value.text = '{"code": "e0",' \
46
+ '"error_description": "desc"}'
47
+
48
+ with self.assertRaises(Auth0Error) as context:
49
+ data = ab.post('the-url', data={'a': 'b'}, headers={'c': 'd'})
50
+
51
+ self.assertEqual(context.exception.status_code, error_status)
52
+ self.assertEqual(context.exception.error_code, 'e0')
53
+ self.assertEqual(context.exception.message, 'desc')
54
+
55
+ @mock.patch('requests.post')
56
+ def test_post_error_with_no_error_code(self, mock_post):
57
+ ab = AuthenticationBase()
58
+
59
+ for error_status in [400, 500, None]:
60
+ mock_post.return_value.status_code = error_status
61
+ mock_post.return_value.text = '{"error_description": "desc"}'
62
+
63
+ with self.assertRaises(Auth0Error) as context:
64
+ data = ab.post('the-url', data={'a': 'b'}, headers={'c': 'd'})
65
+
66
+ self.assertEqual(context.exception.status_code, error_status)
67
+ self.assertEqual(context.exception.error_code, 'a0.sdk.internal.unknown')
68
+ self.assertEqual(context.exception.message, 'desc')
69
+
70
+ @mock.patch('requests.post')
71
+ def test_post_error_with_text_response(self, mock_post):
72
+ ab = AuthenticationBase()
73
+
74
+ for error_status in [400, 500, None]:
75
+ mock_post.return_value.status_code = error_status
76
+ mock_post.return_value.text = 'there has been a terrible error'
77
+
78
+ with self.assertRaises(Auth0Error) as context:
79
+ data = ab.post('the-url', data={'a': 'b'}, headers={'c': 'd'})
80
+
81
+ self.assertEqual(context.exception.status_code, error_status)
82
+ self.assertEqual(context.exception.error_code, 'a0.sdk.internal.unknown')
83
+ self.assertEqual(context.exception.message,
84
+ 'there has been a terrible error')
85
+
86
+ @mock.patch('requests.post')
87
+ def test_post_error_with_no_response_text(self, mock_post):
88
+ ab = AuthenticationBase()
89
+
90
+ for error_status in [400, 500, None]:
91
+ mock_post.return_value.status_code = error_status
92
+ mock_post.return_value.text = None
93
+
94
+ with self.assertRaises(Auth0Error) as context:
95
+ data = ab.post('the-url', data={'a': 'b'}, headers={'c': 'd'})
96
+
97
+ self.assertEqual(context.exception.status_code, error_status)
98
+ self.assertEqual(context.exception.error_code, 'a0.sdk.internal.unknown')
99
+ self.assertEqual(context.exception.message, '')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: auth0-python
3
- Version: 3.1.4
3
+ Version: 3.2.0
4
4
  Summary: Auth0 Python SDK
5
5
  Home-page: https://github.com/auth0/auth0-python
6
6
  Author: Auth0
@@ -1 +0,0 @@
1
- __version__ = '3.1.4'
@@ -1,26 +0,0 @@
1
- import json
2
- import requests
3
- from ..exceptions import Auth0Error
4
-
5
-
6
- class AuthenticationBase(object):
7
-
8
- def post(self, url, data=None, headers=None):
9
- response = requests.post(url=url, data=json.dumps(data),
10
- headers=headers)
11
- return self._process_response(response)
12
-
13
- def get(self, url, params=None, headers=None):
14
- return requests.get(url=url, params=params, headers=headers).text
15
-
16
- def _process_response(self, response):
17
- try:
18
- text = json.loads(response.text) if response.text else {}
19
- except ValueError:
20
- return response.text
21
- else:
22
- if response.status_code is None or response.status_code >= 400:
23
- raise Auth0Error(status_code=response.status_code,
24
- error_code=text.get('error', ''),
25
- message=text.get('error_description', ''))
26
- return text
@@ -1,37 +0,0 @@
1
- import unittest
2
- import mock
3
- from ...authentication.base import AuthenticationBase
4
- from ...exceptions import Auth0Error
5
-
6
-
7
- class TestBase(unittest.TestCase):
8
-
9
- @mock.patch('requests.post')
10
- def test_post(self, mock_post):
11
- ab = AuthenticationBase()
12
-
13
- mock_post.return_value.status_code = 200
14
- mock_post.return_value.text = '{"x": "y"}'
15
-
16
- data = ab.post('the-url', data={'a': 'b'}, headers={'c': 'd'})
17
-
18
- mock_post.assert_called_with(url='the-url', data='{"a": "b"}',
19
- headers={'c': 'd'})
20
-
21
- self.assertEqual(data, {'x': 'y'})
22
-
23
- @mock.patch('requests.post')
24
- def test_post_error(self, mock_post):
25
- ab = AuthenticationBase()
26
-
27
- for error_status in [400, 500, None]:
28
- mock_post.return_value.status_code = error_status
29
- mock_post.return_value.text = '{"error": "e0",' \
30
- '"error_description": "desc"}'
31
-
32
- with self.assertRaises(Auth0Error) as context:
33
- data = ab.post('the-url', data={'a': 'b'}, headers={'c': 'd'})
34
-
35
- self.assertEqual(context.exception.status_code, error_status)
36
- self.assertEqual(context.exception.error_code, 'e0')
37
- self.assertEqual(context.exception.message, 'desc')