navigator-auth 0.16.0__tar.gz → 0.17.2__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 (138) hide show
  1. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/PKG-INFO +6 -3
  2. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/__init__.py +3 -1
  3. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/adfs.py +0 -1
  4. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/github.py +1 -1
  5. navigator_auth-0.17.2/navigator_auth/backends/oauth2/backend.py +650 -0
  6. navigator_auth-0.17.2/navigator_auth/backends/oauth2/client_backend.py +189 -0
  7. navigator_auth-0.17.2/navigator_auth/backends/oauth2/code_backend.py +103 -0
  8. navigator_auth-0.17.2/navigator_auth/backends/oauth2/ddl.sql +33 -0
  9. navigator_auth-0.17.2/navigator_auth/backends/oauth2/models.py +138 -0
  10. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/okta.py +13 -12
  11. navigator_auth-0.17.2/navigator_auth/backends/saml.py +223 -0
  12. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/conf.py +34 -1
  13. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/handlers/__init__.py +11 -0
  14. navigator_auth-0.17.2/navigator_auth/handlers/recovery.py +155 -0
  15. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/models.py +30 -0
  16. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/version.py +1 -1
  17. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth.egg-info/PKG-INFO +6 -3
  18. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth.egg-info/SOURCES.txt +5 -0
  19. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth.egg-info/requires.txt +4 -0
  20. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/pyproject.toml +16 -5
  21. navigator_auth-0.16.0/navigator_auth/backends/oauth2/backend.py +0 -388
  22. navigator_auth-0.16.0/navigator_auth/backends/oauth2/models.py +0 -99
  23. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/CHANGES.rst +0 -0
  24. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/LICENSE +0 -0
  25. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/MANIFEST.in +0 -0
  26. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/Makefile +0 -0
  27. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/README.md +0 -0
  28. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/docs/Makefile +0 -0
  29. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/docs/api.rst +0 -0
  30. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/docs/authors.rst +0 -0
  31. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/docs/changelog.rst +0 -0
  32. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/docs/changes.rst +0 -0
  33. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/docs/code-of-conduct.rst +0 -0
  34. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/docs/conf.py +0 -0
  35. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/docs/config.rst +0 -0
  36. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/docs/index.rst +0 -0
  37. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/docs/make.bat +0 -0
  38. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/docs/policies.py +0 -0
  39. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/docs/requirements-dev.txt +0 -0
  40. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/docs/requirements.txt +0 -0
  41. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/docs/security.rst +0 -0
  42. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/docs/settings.rst +0 -0
  43. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/__init__.py +0 -0
  44. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/__init__.py +0 -0
  45. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/audit.py +0 -0
  46. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/context.py +0 -0
  47. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/decorators.py +0 -0
  48. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/errors.py +0 -0
  49. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/guardian.py +0 -0
  50. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/middleware.py +0 -0
  51. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/pdp.py +0 -0
  52. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/policies/__init__.py +0 -0
  53. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/policies/abstract.py +0 -0
  54. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/policies/environment.py +0 -0
  55. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/policies/evaluator.py +0 -0
  56. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/policies/file.py +0 -0
  57. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/policies/obj.py +0 -0
  58. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/policies/policy.py +0 -0
  59. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/policies/resource_policy.py +0 -0
  60. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/policies/resources.py +0 -0
  61. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/policyhandler.py +0 -0
  62. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/storages/__init__.py +0 -0
  63. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/storages/abstract.py +0 -0
  64. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/storages/db.py +0 -0
  65. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/abac/storages/pg.py +0 -0
  66. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/auth.py +0 -0
  67. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/authorizations/__init__.py +0 -0
  68. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/authorizations/abstract.py +0 -0
  69. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/authorizations/allow_hosts.py +0 -0
  70. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/authorizations/hosts.py +0 -0
  71. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/authorizations/useragent.py +0 -0
  72. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/abstract.py +0 -0
  73. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/api.py +0 -0
  74. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/attributes/__init__.py +0 -0
  75. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/attributes/abstract.py +0 -0
  76. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/attributes/internal.py +0 -0
  77. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/azure.py +0 -0
  78. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/basic.py +0 -0
  79. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/django.py +0 -0
  80. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/external.py +0 -0
  81. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/google.py +0 -0
  82. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/idp/__init__.py +0 -0
  83. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/idp/code.py +0 -0
  84. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/jwksutils.py +0 -0
  85. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/noauth.py +0 -0
  86. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/oauth.py +0 -0
  87. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/oauth2/__init__.py +0 -0
  88. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/token.py +0 -0
  89. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/backends/troc.py +0 -0
  90. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/decorators.py +0 -0
  91. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/exceptions.c +0 -0
  92. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/exceptions.pxd +0 -0
  93. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/exceptions.pyx +0 -0
  94. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/handlers/groups.py +0 -0
  95. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/handlers/handler.py +0 -0
  96. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/handlers/model.py +0 -0
  97. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/handlers/partners.py +0 -0
  98. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/handlers/permissions.py +0 -0
  99. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/handlers/userattrs.py +0 -0
  100. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/handlers/users/__init__.py +0 -0
  101. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/handlers/users/passwd.py +0 -0
  102. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/handlers/users/session.py +0 -0
  103. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/handlers/users/user.py +0 -0
  104. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/identities.py +0 -0
  105. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/libs/__init__.py +0 -0
  106. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/libs/cipher.cpp +0 -0
  107. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/libs/cipher.pyx +0 -0
  108. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/libs/json.cpp +0 -0
  109. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/libs/json.pyx +0 -0
  110. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/libs/parser.cpp +0 -0
  111. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/libs/parser.pyx +0 -0
  112. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/middlewares/__init__.py +0 -0
  113. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/middlewares/abstract.py +0 -0
  114. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/middlewares/apikey.py +0 -0
  115. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/middlewares/django.py +0 -0
  116. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/middlewares/jwt.py +0 -0
  117. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/middlewares/security.py +0 -0
  118. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/middlewares/token.py +0 -0
  119. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/middlewares/troc.py +0 -0
  120. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/py.typed +0 -0
  121. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/responses.py +0 -0
  122. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/storages/__init__.py +0 -0
  123. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/storages/abstract.py +0 -0
  124. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/storages/postgres.py +0 -0
  125. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/storages/redis.py +0 -0
  126. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/templates.py +0 -0
  127. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth/uv.py +0 -0
  128. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth.egg-info/dependency_links.txt +0 -0
  129. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/navigator_auth.egg-info/top_level.txt +0 -0
  130. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/setup.cfg +0 -0
  131. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/setup.py +0 -0
  132. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/tests/__init__.py +0 -0
  133. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/tests/test_allowed.py +0 -0
  134. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/tests/test_login.py +0 -0
  135. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/tests/test_policy.py +0 -0
  136. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/tests/test_policy_conditions.py +0 -0
  137. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/tests/test_policy_evaluation.py +0 -0
  138. {navigator_auth-0.16.0 → navigator_auth-0.17.2}/tests/test_policy_object.py +0 -0
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: navigator-auth
3
- Version: 0.16.0
3
+ Version: 0.17.2
4
4
  Summary: Navigator Auth is an Authentication/Authorization Toolkit for aiohttp.
5
5
  Author-email: Jesus Lara Gimenez <jesuslarag@gmail.com>
6
- License: Apache 2.0 License
6
+ License-Expression: Apache-2.0
7
7
  Project-URL: Homepage, https://github.com/phenobarbital/navigator-auth
8
8
  Project-URL: Source, https://github.com/phenobarbital/navigator-auth
9
9
  Project-URL: Funding, https://paypal.me/phenobarbital
@@ -25,7 +25,6 @@ Classifier: Programming Language :: Python :: 3.12
25
25
  Classifier: Programming Language :: Python :: 3.13
26
26
  Classifier: Framework :: AsyncIO
27
27
  Classifier: Framework :: aiohttp
28
- Classifier: License :: OSI Approved :: Apache Software License
29
28
  Requires-Python: >=3.9.16
30
29
  Description-Content-Type: text/markdown
31
30
  License-File: LICENSE
@@ -44,6 +43,10 @@ Requires-Dist: asyncdb>=2.8.0
44
43
  Requires-Dist: navconfig>=1.7.0
45
44
  Requires-Dist: navigator-session>=0.6.5
46
45
  Requires-Dist: navigator-api>=0.5.0
46
+ Requires-Dist: pydantic>=2.12.5
47
+ Requires-Dist: python3-saml>=1.16.0
48
+ Requires-Dist: lxml>=6.0.2
49
+ Requires-Dist: xmlsec>=1.3.17
47
50
  Provides-Extra: uvloop
48
51
  Requires-Dist: uvloop>=0.20.0; extra == "uvloop"
49
52
  Dynamic: license-file
@@ -14,6 +14,7 @@ from .adfs import ADFSAuth
14
14
  from .azure import AzureAuth
15
15
  from .github import GithubAuth
16
16
  from .oauth2 import Oauth2Provider
17
+ from .saml import SAMLAuth
17
18
 
18
19
 
19
20
  __all__ = (
@@ -28,5 +29,6 @@ __all__ = (
28
29
  "ADFSAuth",
29
30
  "AzureAuth",
30
31
  "GithubAuth",
31
- "Oauth2Provider"
32
+ "Oauth2Provider",
33
+ "SAMLAuth"
32
34
  )
@@ -200,7 +200,6 @@ class ADFSAuth(ExternalAuth):
200
200
  message="Missing Auth Nonce"
201
201
  )
202
202
  flow = {}
203
- print('STATE > ', state)
204
203
  internal_redirect = None
205
204
  # making validation with previous state
206
205
  try:
@@ -71,7 +71,7 @@ class GithubAuth(OauthAuth):
71
71
  data = await self.get(
72
72
  self.userinfo_uri,
73
73
  token=access_token,
74
- token_type="token",
74
+ token_type="Bearer",
75
75
  headers=headers,
76
76
  )
77
77
  if data: