types-Authlib 1.3.0.20241229__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 (161) hide show
  1. types_authlib-1.3.0.20241229/CHANGELOG.md +7 -0
  2. types_authlib-1.3.0.20241229/LICENSE +237 -0
  3. types_authlib-1.3.0.20241229/MANIFEST.in +1 -0
  4. types_authlib-1.3.0.20241229/PKG-INFO +48 -0
  5. types_authlib-1.3.0.20241229/README.md +30 -0
  6. types_authlib-1.3.0.20241229/authlib-stubs/METADATA.toml +7 -0
  7. types_authlib-1.3.0.20241229/authlib-stubs/__init__.pyi +4 -0
  8. types_authlib-1.3.0.20241229/authlib-stubs/common/__init__.pyi +0 -0
  9. types_authlib-1.3.0.20241229/authlib-stubs/common/encoding.pyi +10 -0
  10. types_authlib-1.3.0.20241229/authlib-stubs/common/errors.pyi +26 -0
  11. types_authlib-1.3.0.20241229/authlib-stubs/common/security.pyi +4 -0
  12. types_authlib-1.3.0.20241229/authlib-stubs/common/urls.pyi +19 -0
  13. types_authlib-1.3.0.20241229/authlib-stubs/consts.pyi +8 -0
  14. types_authlib-1.3.0.20241229/authlib-stubs/deprecate.pyi +7 -0
  15. types_authlib-1.3.0.20241229/authlib-stubs/integrations/__init__.pyi +0 -0
  16. types_authlib-1.3.0.20241229/authlib-stubs/integrations/base_client/__init__.pyi +29 -0
  17. types_authlib-1.3.0.20241229/authlib-stubs/integrations/base_client/async_app.pyi +16 -0
  18. types_authlib-1.3.0.20241229/authlib-stubs/integrations/base_client/async_openid.pyi +8 -0
  19. types_authlib-1.3.0.20241229/authlib-stubs/integrations/base_client/errors.pyi +23 -0
  20. types_authlib-1.3.0.20241229/authlib-stubs/integrations/base_client/framework_integration.pyi +13 -0
  21. types_authlib-1.3.0.20241229/authlib-stubs/integrations/base_client/registry.pyi +21 -0
  22. types_authlib-1.3.0.20241229/authlib-stubs/integrations/base_client/sync_app.pyi +93 -0
  23. types_authlib-1.3.0.20241229/authlib-stubs/integrations/base_client/sync_openid.pyi +7 -0
  24. types_authlib-1.3.0.20241229/authlib-stubs/jose/__init__.pyi +44 -0
  25. types_authlib-1.3.0.20241229/authlib-stubs/jose/drafts/__init__.pyi +3 -0
  26. types_authlib-1.3.0.20241229/authlib-stubs/jose/drafts/_jwe_algorithms.pyi +27 -0
  27. types_authlib-1.3.0.20241229/authlib-stubs/jose/drafts/_jwe_enc_cryptodome.pyi +13 -0
  28. types_authlib-1.3.0.20241229/authlib-stubs/jose/drafts/_jwe_enc_cryptography.pyi +13 -0
  29. types_authlib-1.3.0.20241229/authlib-stubs/jose/errors.pyi +72 -0
  30. types_authlib-1.3.0.20241229/authlib-stubs/jose/jwk.pyi +4 -0
  31. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7515/__init__.pyi +4 -0
  32. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7515/jws.pyi +14 -0
  33. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7515/models.pyi +25 -0
  34. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7516/__init__.pyi +9 -0
  35. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7516/jwe.pyi +23 -0
  36. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7516/models.pyi +56 -0
  37. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7517/__init__.pyi +7 -0
  38. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7517/_cryptography_key.pyi +5 -0
  39. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7517/asymmetric_key.pyi +39 -0
  40. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7517/base_key.pyi +28 -0
  41. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7517/jwk.pyi +13 -0
  42. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7517/key_set.pyi +10 -0
  43. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7518/__init__.pyi +20 -0
  44. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7518/ec_key.pyi +24 -0
  45. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7518/jwe_algs.pyi +64 -0
  46. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7518/jwe_encs.pyi +27 -0
  47. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7518/jwe_zips.pyi +9 -0
  48. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7518/jws_algs.pyi +63 -0
  49. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7518/oct_key.pyi +23 -0
  50. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7518/rsa_key.pyi +23 -0
  51. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7518/util.pyi +2 -0
  52. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7519/__init__.pyi +4 -0
  53. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7519/claims.pyi +21 -0
  54. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc7519/jwt.pyi +21 -0
  55. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc8037/__init__.pyi +4 -0
  56. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc8037/jws_eddsa.pyi +10 -0
  57. types_authlib-1.3.0.20241229/authlib-stubs/jose/rfc8037/okp_key.pyi +24 -0
  58. types_authlib-1.3.0.20241229/authlib-stubs/jose/util.pyi +3 -0
  59. types_authlib-1.3.0.20241229/authlib-stubs/oauth1/__init__.pyi +33 -0
  60. types_authlib-1.3.0.20241229/authlib-stubs/oauth1/client.pyi +39 -0
  61. types_authlib-1.3.0.20241229/authlib-stubs/oauth1/errors.pyi +1 -0
  62. types_authlib-1.3.0.20241229/authlib-stubs/oauth1/rfc5849/__init__.pyi +35 -0
  63. types_authlib-1.3.0.20241229/authlib-stubs/oauth1/rfc5849/authorization_server.pyi +21 -0
  64. types_authlib-1.3.0.20241229/authlib-stubs/oauth1/rfc5849/base_server.pyi +12 -0
  65. types_authlib-1.3.0.20241229/authlib-stubs/oauth1/rfc5849/client_auth.pyi +41 -0
  66. types_authlib-1.3.0.20241229/authlib-stubs/oauth1/rfc5849/errors.pyi +56 -0
  67. types_authlib-1.3.0.20241229/authlib-stubs/oauth1/rfc5849/models.pyi +21 -0
  68. types_authlib-1.3.0.20241229/authlib-stubs/oauth1/rfc5849/parameters.pyi +5 -0
  69. types_authlib-1.3.0.20241229/authlib-stubs/oauth1/rfc5849/resource_protector.pyi +5 -0
  70. types_authlib-1.3.0.20241229/authlib-stubs/oauth1/rfc5849/rsa.pyi +2 -0
  71. types_authlib-1.3.0.20241229/authlib-stubs/oauth1/rfc5849/signature.pyi +22 -0
  72. types_authlib-1.3.0.20241229/authlib-stubs/oauth1/rfc5849/util.pyi +2 -0
  73. types_authlib-1.3.0.20241229/authlib-stubs/oauth1/rfc5849/wrapper.pyi +33 -0
  74. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/__init__.pyi +22 -0
  75. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/auth.pyi +24 -0
  76. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/base.pyi +20 -0
  77. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/client.pyi +96 -0
  78. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6749/__init__.pyi +76 -0
  79. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6749/authenticate_client.pyi +13 -0
  80. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6749/authorization_server.pyi +46 -0
  81. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6749/errors.pyi +92 -0
  82. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6749/grants/__init__.pyi +21 -0
  83. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6749/grants/authorization_code.pyi +24 -0
  84. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6749/grants/base.pyi +55 -0
  85. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6749/grants/client_credentials.pyi +6 -0
  86. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6749/grants/implicit.pyi +12 -0
  87. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6749/grants/refresh_token.pyi +15 -0
  88. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6749/grants/resource_owner_password_credentials.pyi +7 -0
  89. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6749/models.pyi +22 -0
  90. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6749/parameters.pyi +14 -0
  91. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6749/requests.pyi +48 -0
  92. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6749/resource_protector.pyi +19 -0
  93. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6749/token_endpoint.pyi +13 -0
  94. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6749/util.pyi +5 -0
  95. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6749/wrappers.pyi +5 -0
  96. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6750/__init__.pyi +15 -0
  97. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6750/errors.pyi +27 -0
  98. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6750/parameters.pyi +6 -0
  99. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6750/token.pyi +41 -0
  100. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc6750/validator.pyi +6 -0
  101. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7009/__init__.pyi +4 -0
  102. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7009/parameters.pyi +5 -0
  103. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7009/revocation.pyi +9 -0
  104. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7521/__init__.pyi +3 -0
  105. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7521/client.pyi +39 -0
  106. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7523/__init__.pyi +18 -0
  107. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7523/assertion.pyi +19 -0
  108. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7523/auth.pyi +22 -0
  109. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7523/client.pyi +16 -0
  110. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7523/jwt_bearer.pyi +28 -0
  111. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7523/token.pyi +30 -0
  112. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7523/validator.pyi +24 -0
  113. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7591/__init__.pyi +17 -0
  114. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7591/claims.pyi +22 -0
  115. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7591/endpoint.pyi +24 -0
  116. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7591/errors.pyi +13 -0
  117. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7592/__init__.pyi +3 -0
  118. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7592/endpoint.pyi +26 -0
  119. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7636/__init__.pyi +3 -0
  120. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7636/challenge.pyi +20 -0
  121. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7662/__init__.pyi +5 -0
  122. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7662/introspection.pyi +11 -0
  123. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7662/models.pyi +8 -0
  124. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc7662/token_validator.pyi +7 -0
  125. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc8414/__init__.pyi +4 -0
  126. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc8414/models.pyi +40 -0
  127. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc8414/well_known.pyi +1 -0
  128. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc8628/__init__.pyi +19 -0
  129. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc8628/device_code.pyi +15 -0
  130. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc8628/endpoint.pyi +21 -0
  131. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc8628/errors.pyi +10 -0
  132. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc8628/models.pyi +13 -0
  133. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc8693/__init__.pyi +0 -0
  134. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc9068/__init__.pyi +6 -0
  135. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc9068/claims.pyi +16 -0
  136. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc9068/introspection.pyi +13 -0
  137. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc9068/revocation.pyi +9 -0
  138. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc9068/token.pyi +23 -0
  139. types_authlib-1.3.0.20241229/authlib-stubs/oauth2/rfc9068/token_validator.pyi +20 -0
  140. types_authlib-1.3.0.20241229/authlib-stubs/oidc/__init__.pyi +0 -0
  141. types_authlib-1.3.0.20241229/authlib-stubs/oidc/core/__init__.pyi +29 -0
  142. types_authlib-1.3.0.20241229/authlib-stubs/oidc/core/claims.pyi +37 -0
  143. types_authlib-1.3.0.20241229/authlib-stubs/oidc/core/errors.pyi +28 -0
  144. types_authlib-1.3.0.20241229/authlib-stubs/oidc/core/grants/__init__.pyi +5 -0
  145. types_authlib-1.3.0.20241229/authlib-stubs/oidc/core/grants/code.pyi +17 -0
  146. types_authlib-1.3.0.20241229/authlib-stubs/oidc/core/grants/hybrid.pyi +13 -0
  147. types_authlib-1.3.0.20241229/authlib-stubs/oidc/core/grants/implicit.pyi +16 -0
  148. types_authlib-1.3.0.20241229/authlib-stubs/oidc/core/grants/util.pyi +18 -0
  149. types_authlib-1.3.0.20241229/authlib-stubs/oidc/core/models.pyi +5 -0
  150. types_authlib-1.3.0.20241229/authlib-stubs/oidc/core/util.pyi +1 -0
  151. types_authlib-1.3.0.20241229/authlib-stubs/oidc/discovery/__init__.pyi +4 -0
  152. types_authlib-1.3.0.20241229/authlib-stubs/oidc/discovery/models.pyi +36 -0
  153. types_authlib-1.3.0.20241229/authlib-stubs/oidc/discovery/well_known.pyi +1 -0
  154. types_authlib-1.3.0.20241229/authlib-stubs/py.typed +1 -0
  155. types_authlib-1.3.0.20241229/setup.cfg +4 -0
  156. types_authlib-1.3.0.20241229/setup.py +60 -0
  157. types_authlib-1.3.0.20241229/types_Authlib.egg-info/PKG-INFO +48 -0
  158. types_authlib-1.3.0.20241229/types_Authlib.egg-info/SOURCES.txt +159 -0
  159. types_authlib-1.3.0.20241229/types_Authlib.egg-info/dependency_links.txt +1 -0
  160. types_authlib-1.3.0.20241229/types_Authlib.egg-info/requires.txt +1 -0
  161. types_authlib-1.3.0.20241229/types_Authlib.egg-info/top_level.txt +1 -0
@@ -0,0 +1,7 @@
1
+ ## 1.3.0.20241229 (2024-12-29)
2
+
3
+ Authlib (v2) (#13140)
4
+
5
+ Co-authored-by: Brian Villemarette <brian.villemarette@trucesoftware.com>
6
+ Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
7
+
@@ -0,0 +1,237 @@
1
+ The "typeshed" project is licensed under the terms of the Apache license, as
2
+ reproduced below.
3
+
4
+ = = = = =
5
+
6
+ Apache License
7
+ Version 2.0, January 2004
8
+ http://www.apache.org/licenses/
9
+
10
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
11
+
12
+ 1. Definitions.
13
+
14
+ "License" shall mean the terms and conditions for use, reproduction,
15
+ and distribution as defined by Sections 1 through 9 of this document.
16
+
17
+ "Licensor" shall mean the copyright owner or entity authorized by
18
+ the copyright owner that is granting the License.
19
+
20
+ "Legal Entity" shall mean the union of the acting entity and all
21
+ other entities that control, are controlled by, or are under common
22
+ control with that entity. For the purposes of this definition,
23
+ "control" means (i) the power, direct or indirect, to cause the
24
+ direction or management of such entity, whether by contract or
25
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
26
+ outstanding shares, or (iii) beneficial ownership of such entity.
27
+
28
+ "You" (or "Your") shall mean an individual or Legal Entity
29
+ exercising permissions granted by this License.
30
+
31
+ "Source" form shall mean the preferred form for making modifications,
32
+ including but not limited to software source code, documentation
33
+ source, and configuration files.
34
+
35
+ "Object" form shall mean any form resulting from mechanical
36
+ transformation or translation of a Source form, including but
37
+ not limited to compiled object code, generated documentation,
38
+ and conversions to other media types.
39
+
40
+ "Work" shall mean the work of authorship, whether in Source or
41
+ Object form, made available under the License, as indicated by a
42
+ copyright notice that is included in or attached to the work
43
+ (an example is provided in the Appendix below).
44
+
45
+ "Derivative Works" shall mean any work, whether in Source or Object
46
+ form, that is based on (or derived from) the Work and for which the
47
+ editorial revisions, annotations, elaborations, or other modifications
48
+ represent, as a whole, an original work of authorship. For the purposes
49
+ of this License, Derivative Works shall not include works that remain
50
+ separable from, or merely link (or bind by name) to the interfaces of,
51
+ the Work and Derivative Works thereof.
52
+
53
+ "Contribution" shall mean any work of authorship, including
54
+ the original version of the Work and any modifications or additions
55
+ to that Work or Derivative Works thereof, that is intentionally
56
+ submitted to Licensor for inclusion in the Work by the copyright owner
57
+ or by an individual or Legal Entity authorized to submit on behalf of
58
+ the copyright owner. For the purposes of this definition, "submitted"
59
+ means any form of electronic, verbal, or written communication sent
60
+ to the Licensor or its representatives, including but not limited to
61
+ communication on electronic mailing lists, source code control systems,
62
+ and issue tracking systems that are managed by, or on behalf of, the
63
+ Licensor for the purpose of discussing and improving the Work, but
64
+ excluding communication that is conspicuously marked or otherwise
65
+ designated in writing by the copyright owner as "Not a Contribution."
66
+
67
+ "Contributor" shall mean Licensor and any individual or Legal Entity
68
+ on behalf of whom a Contribution has been received by Licensor and
69
+ subsequently incorporated within the Work.
70
+
71
+ 2. Grant of Copyright License. Subject to the terms and conditions of
72
+ this License, each Contributor hereby grants to You a perpetual,
73
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
74
+ copyright license to reproduce, prepare Derivative Works of,
75
+ publicly display, publicly perform, sublicense, and distribute the
76
+ Work and such Derivative Works in Source or Object form.
77
+
78
+ 3. Grant of Patent License. Subject to the terms and conditions of
79
+ this License, each Contributor hereby grants to You a perpetual,
80
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
81
+ (except as stated in this section) patent license to make, have made,
82
+ use, offer to sell, sell, import, and otherwise transfer the Work,
83
+ where such license applies only to those patent claims licensable
84
+ by such Contributor that are necessarily infringed by their
85
+ Contribution(s) alone or by combination of their Contribution(s)
86
+ with the Work to which such Contribution(s) was submitted. If You
87
+ institute patent litigation against any entity (including a
88
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
89
+ or a Contribution incorporated within the Work constitutes direct
90
+ or contributory patent infringement, then any patent licenses
91
+ granted to You under this License for that Work shall terminate
92
+ as of the date such litigation is filed.
93
+
94
+ 4. Redistribution. You may reproduce and distribute copies of the
95
+ Work or Derivative Works thereof in any medium, with or without
96
+ modifications, and in Source or Object form, provided that You
97
+ meet the following conditions:
98
+
99
+ (a) You must give any other recipients of the Work or
100
+ Derivative Works a copy of this License; and
101
+
102
+ (b) You must cause any modified files to carry prominent notices
103
+ stating that You changed the files; and
104
+
105
+ (c) You must retain, in the Source form of any Derivative Works
106
+ that You distribute, all copyright, patent, trademark, and
107
+ attribution notices from the Source form of the Work,
108
+ excluding those notices that do not pertain to any part of
109
+ the Derivative Works; and
110
+
111
+ (d) If the Work includes a "NOTICE" text file as part of its
112
+ distribution, then any Derivative Works that You distribute must
113
+ include a readable copy of the attribution notices contained
114
+ within such NOTICE file, excluding those notices that do not
115
+ pertain to any part of the Derivative Works, in at least one
116
+ of the following places: within a NOTICE text file distributed
117
+ as part of the Derivative Works; within the Source form or
118
+ documentation, if provided along with the Derivative Works; or,
119
+ within a display generated by the Derivative Works, if and
120
+ wherever such third-party notices normally appear. The contents
121
+ of the NOTICE file are for informational purposes only and
122
+ do not modify the License. You may add Your own attribution
123
+ notices within Derivative Works that You distribute, alongside
124
+ or as an addendum to the NOTICE text from the Work, provided
125
+ that such additional attribution notices cannot be construed
126
+ as modifying the License.
127
+
128
+ You may add Your own copyright statement to Your modifications and
129
+ may provide additional or different license terms and conditions
130
+ for use, reproduction, or distribution of Your modifications, or
131
+ for any such Derivative Works as a whole, provided Your use,
132
+ reproduction, and distribution of the Work otherwise complies with
133
+ the conditions stated in this License.
134
+
135
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
136
+ any Contribution intentionally submitted for inclusion in the Work
137
+ by You to the Licensor shall be under the terms and conditions of
138
+ this License, without any additional terms or conditions.
139
+ Notwithstanding the above, nothing herein shall supersede or modify
140
+ the terms of any separate license agreement you may have executed
141
+ with Licensor regarding such Contributions.
142
+
143
+ 6. Trademarks. This License does not grant permission to use the trade
144
+ names, trademarks, service marks, or product names of the Licensor,
145
+ except as required for reasonable and customary use in describing the
146
+ origin of the Work and reproducing the content of the NOTICE file.
147
+
148
+ 7. Disclaimer of Warranty. Unless required by applicable law or
149
+ agreed to in writing, Licensor provides the Work (and each
150
+ Contributor provides its Contributions) on an "AS IS" BASIS,
151
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
152
+ implied, including, without limitation, any warranties or conditions
153
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
154
+ PARTICULAR PURPOSE. You are solely responsible for determining the
155
+ appropriateness of using or redistributing the Work and assume any
156
+ risks associated with Your exercise of permissions under this License.
157
+
158
+ 8. Limitation of Liability. In no event and under no legal theory,
159
+ whether in tort (including negligence), contract, or otherwise,
160
+ unless required by applicable law (such as deliberate and grossly
161
+ negligent acts) or agreed to in writing, shall any Contributor be
162
+ liable to You for damages, including any direct, indirect, special,
163
+ incidental, or consequential damages of any character arising as a
164
+ result of this License or out of the use or inability to use the
165
+ Work (including but not limited to damages for loss of goodwill,
166
+ work stoppage, computer failure or malfunction, or any and all
167
+ other commercial damages or losses), even if such Contributor
168
+ has been advised of the possibility of such damages.
169
+
170
+ 9. Accepting Warranty or Additional Liability. While redistributing
171
+ the Work or Derivative Works thereof, You may choose to offer,
172
+ and charge a fee for, acceptance of support, warranty, indemnity,
173
+ or other liability obligations and/or rights consistent with this
174
+ License. However, in accepting such obligations, You may act only
175
+ on Your own behalf and on Your sole responsibility, not on behalf
176
+ of any other Contributor, and only if You agree to indemnify,
177
+ defend, and hold each Contributor harmless for any liability
178
+ incurred by, or claims asserted against, such Contributor by reason
179
+ of your accepting any such warranty or additional liability.
180
+
181
+ END OF TERMS AND CONDITIONS
182
+
183
+ APPENDIX: How to apply the Apache License to your work.
184
+
185
+ To apply the Apache License to your work, attach the following
186
+ boilerplate notice, with the fields enclosed by brackets "{}"
187
+ replaced with your own identifying information. (Don't include
188
+ the brackets!) The text should be enclosed in the appropriate
189
+ comment syntax for the file format. We also recommend that a
190
+ file or class name and description of purpose be included on the
191
+ same "printed page" as the copyright notice for easier
192
+ identification within third-party archives.
193
+
194
+ Copyright {yyyy} {name of copyright owner}
195
+
196
+ Licensed under the Apache License, Version 2.0 (the "License");
197
+ you may not use this file except in compliance with the License.
198
+ You may obtain a copy of the License at
199
+
200
+ http://www.apache.org/licenses/LICENSE-2.0
201
+
202
+ Unless required by applicable law or agreed to in writing, software
203
+ distributed under the License is distributed on an "AS IS" BASIS,
204
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
205
+ See the License for the specific language governing permissions and
206
+ limitations under the License.
207
+
208
+ = = = = =
209
+
210
+ Parts of typeshed are licensed under different licenses (like the MIT
211
+ license), reproduced below.
212
+
213
+ = = = = =
214
+
215
+ The MIT License
216
+
217
+ Copyright (c) 2015 Jukka Lehtosalo and contributors
218
+
219
+ Permission is hereby granted, free of charge, to any person obtaining a
220
+ copy of this software and associated documentation files (the "Software"),
221
+ to deal in the Software without restriction, including without limitation
222
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
223
+ and/or sell copies of the Software, and to permit persons to whom the
224
+ Software is furnished to do so, subject to the following conditions:
225
+
226
+ The above copyright notice and this permission notice shall be included in
227
+ all copies or substantial portions of the Software.
228
+
229
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
230
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
231
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
232
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
233
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
234
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
235
+ DEALINGS IN THE SOFTWARE.
236
+
237
+ = = = = =
@@ -0,0 +1 @@
1
+ include CHANGELOG.md
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.1
2
+ Name: types-Authlib
3
+ Version: 1.3.0.20241229
4
+ Summary: Typing stubs for Authlib
5
+ Home-page: https://github.com/python/typeshed
6
+ License: Apache-2.0
7
+ Project-URL: GitHub, https://github.com/python/typeshed
8
+ Project-URL: Changes, https://github.com/typeshed-internal/stub_uploader/blob/main/data/changelogs/Authlib.md
9
+ Project-URL: Issue tracker, https://github.com/python/typeshed/issues
10
+ Project-URL: Chat, https://gitter.im/python/typing
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Typing :: Stubs Only
14
+ Requires-Python: >=3.8
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: cryptography
18
+
19
+ ## Typing stubs for Authlib
20
+
21
+ This is a [PEP 561](https://peps.python.org/pep-0561/)
22
+ type stub package for the [`Authlib`](https://github.com/lepture/authlib) package.
23
+ It can be used by type-checking tools like
24
+ [mypy](https://github.com/python/mypy/),
25
+ [pyright](https://github.com/microsoft/pyright),
26
+ [pytype](https://github.com/google/pytype/),
27
+ [Pyre](https://pyre-check.org/),
28
+ PyCharm, etc. to check code that uses `Authlib`. This version of
29
+ `types-Authlib` aims to provide accurate annotations for
30
+ `Authlib==1.3.*`.
31
+
32
+ This stub package is marked as [partial](https://peps.python.org/pep-0561/#partial-stub-packages).
33
+ If you find that annotations are missing, feel free to contribute and help complete them.
34
+
35
+
36
+ This package is part of the [typeshed project](https://github.com/python/typeshed).
37
+ All fixes for types and metadata should be contributed there.
38
+ See [the README](https://github.com/python/typeshed/blob/main/README.md)
39
+ for more details. The source for this package can be found in the
40
+ [`stubs/Authlib`](https://github.com/python/typeshed/tree/main/stubs/Authlib)
41
+ directory.
42
+
43
+ This package was tested with
44
+ mypy 1.14.0,
45
+ pyright 1.1.389,
46
+ and pytype 2024.10.11.
47
+ It was generated from typeshed commit
48
+ [`2cdda12df78275b98a5d3cdc8a92f93d596d9d5d`](https://github.com/python/typeshed/commit/2cdda12df78275b98a5d3cdc8a92f93d596d9d5d).
@@ -0,0 +1,30 @@
1
+ ## Typing stubs for Authlib
2
+
3
+ This is a [PEP 561](https://peps.python.org/pep-0561/)
4
+ type stub package for the [`Authlib`](https://github.com/lepture/authlib) package.
5
+ It can be used by type-checking tools like
6
+ [mypy](https://github.com/python/mypy/),
7
+ [pyright](https://github.com/microsoft/pyright),
8
+ [pytype](https://github.com/google/pytype/),
9
+ [Pyre](https://pyre-check.org/),
10
+ PyCharm, etc. to check code that uses `Authlib`. This version of
11
+ `types-Authlib` aims to provide accurate annotations for
12
+ `Authlib==1.3.*`.
13
+
14
+ This stub package is marked as [partial](https://peps.python.org/pep-0561/#partial-stub-packages).
15
+ If you find that annotations are missing, feel free to contribute and help complete them.
16
+
17
+
18
+ This package is part of the [typeshed project](https://github.com/python/typeshed).
19
+ All fixes for types and metadata should be contributed there.
20
+ See [the README](https://github.com/python/typeshed/blob/main/README.md)
21
+ for more details. The source for this package can be found in the
22
+ [`stubs/Authlib`](https://github.com/python/typeshed/tree/main/stubs/Authlib)
23
+ directory.
24
+
25
+ This package was tested with
26
+ mypy 1.14.0,
27
+ pyright 1.1.389,
28
+ and pytype 2024.10.11.
29
+ It was generated from typeshed commit
30
+ [`2cdda12df78275b98a5d3cdc8a92f93d596d9d5d`](https://github.com/python/typeshed/commit/2cdda12df78275b98a5d3cdc8a92f93d596d9d5d).
@@ -0,0 +1,7 @@
1
+ version = "1.3.*"
2
+ upstream_repository = "https://github.com/lepture/authlib"
3
+ requires = ["cryptography"]
4
+ partial_stub = true
5
+
6
+ [tool.stubtest]
7
+ ignore_missing_stub = true
@@ -0,0 +1,4 @@
1
+ from .consts import homepage, version
2
+
3
+ __version__ = version
4
+ __homepage__ = homepage
@@ -0,0 +1,10 @@
1
+ def to_bytes(x, charset: str = "utf-8", errors: str = "strict") -> bytes | None: ...
2
+ def to_unicode(x, charset: str = "utf-8", errors: str = "strict") -> str | None: ...
3
+ def to_native(x, encoding: str = "ascii"): ...
4
+ def json_loads(s): ...
5
+ def json_dumps(data, ensure_ascii: bool = False): ...
6
+ def urlsafe_b64decode(s): ...
7
+ def urlsafe_b64encode(s): ...
8
+ def base64_to_int(s): ...
9
+ def int_to_base64(num): ...
10
+ def json_b64encode(text): ...
@@ -0,0 +1,26 @@
1
+ from _typeshed import Incomplete
2
+
3
+ class AuthlibBaseError(Exception):
4
+ error: Incomplete
5
+ description: str
6
+ uri: Incomplete
7
+ def __init__(
8
+ self, error: Incomplete | None = None, description: Incomplete | None = None, uri: Incomplete | None = None
9
+ ) -> None: ...
10
+
11
+ class AuthlibHTTPError(AuthlibBaseError):
12
+ status_code: int
13
+ def __init__(
14
+ self,
15
+ error: Incomplete | None = None,
16
+ description: Incomplete | None = None,
17
+ uri: Incomplete | None = None,
18
+ status_code: Incomplete | None = None,
19
+ ) -> None: ...
20
+ def get_error_description(self): ...
21
+ def get_body(self): ...
22
+ def get_headers(self): ...
23
+ uri: Incomplete
24
+ def __call__(self, uri: Incomplete | None = None): ...
25
+
26
+ class ContinueIteration(AuthlibBaseError): ...
@@ -0,0 +1,4 @@
1
+ UNICODE_ASCII_CHARACTER_SET: str
2
+
3
+ def generate_token(length: int = 30, chars: str = ...) -> str: ...
4
+ def is_secure_transport(uri: str) -> bool: ...
@@ -0,0 +1,19 @@
1
+ from collections.abc import Collection
2
+ from re import Pattern
3
+ from typing_extensions import TypeAlias
4
+
5
+ always_safe: str
6
+ urlencoded: Collection[str]
7
+ INVALID_HEX_PATTERN: Pattern[str]
8
+
9
+ _ExplodedQueryString: TypeAlias = list[tuple[str, str]]
10
+
11
+ def url_encode(params: _ExplodedQueryString) -> str: ...
12
+ def url_decode(query: str) -> _ExplodedQueryString: ...
13
+ def add_params_to_qs(query: str, params: _ExplodedQueryString) -> str: ...
14
+ def add_params_to_uri(uri: str, params: _ExplodedQueryString, fragment: bool = False): ...
15
+ def quote(s: str, safe: bytes = b"/") -> str: ...
16
+ def unquote(s: str) -> str: ...
17
+ def quote_url(s: str) -> str: ...
18
+ def extract_params(raw: dict[str, str] | _ExplodedQueryString) -> _ExplodedQueryString: ...
19
+ def is_valid_url(url: str) -> bool: ...
@@ -0,0 +1,8 @@
1
+ from _typeshed import Incomplete
2
+
3
+ name: str
4
+ version: str
5
+ author: str
6
+ homepage: str
7
+ default_user_agent: Incomplete
8
+ default_json_headers: Incomplete
@@ -0,0 +1,7 @@
1
+ from _typeshed import Incomplete
2
+
3
+ class AuthlibDeprecationWarning(DeprecationWarning): ...
4
+
5
+ def deprecate(
6
+ message, version: Incomplete | None = None, link_uid: Incomplete | None = None, link_file: Incomplete | None = None
7
+ ) -> None: ...
@@ -0,0 +1,29 @@
1
+ from .errors import (
2
+ InvalidTokenError as InvalidTokenError,
3
+ MismatchingStateError as MismatchingStateError,
4
+ MissingRequestTokenError as MissingRequestTokenError,
5
+ MissingTokenError as MissingTokenError,
6
+ OAuthError as OAuthError,
7
+ TokenExpiredError as TokenExpiredError,
8
+ UnsupportedTokenTypeError as UnsupportedTokenTypeError,
9
+ )
10
+ from .framework_integration import FrameworkIntegration as FrameworkIntegration
11
+ from .registry import BaseOAuth as BaseOAuth
12
+ from .sync_app import BaseApp as BaseApp, OAuth1Mixin as OAuth1Mixin, OAuth2Mixin as OAuth2Mixin
13
+ from .sync_openid import OpenIDMixin as OpenIDMixin
14
+
15
+ __all__ = [
16
+ "BaseOAuth",
17
+ "BaseApp",
18
+ "OAuth1Mixin",
19
+ "OAuth2Mixin",
20
+ "OpenIDMixin",
21
+ "FrameworkIntegration",
22
+ "OAuthError",
23
+ "MissingRequestTokenError",
24
+ "MissingTokenError",
25
+ "TokenExpiredError",
26
+ "InvalidTokenError",
27
+ "UnsupportedTokenTypeError",
28
+ "MismatchingStateError",
29
+ ]
@@ -0,0 +1,16 @@
1
+ from _typeshed import Incomplete
2
+
3
+ from authlib.integrations.base_client.sync_app import OAuth1Base, OAuth2Base
4
+
5
+ __all__ = ["AsyncOAuth1Mixin", "AsyncOAuth2Mixin"]
6
+
7
+ class AsyncOAuth1Mixin(OAuth1Base):
8
+ async def request(self, method, url, token: Incomplete | None = None, **kwargs): ...
9
+ async def create_authorization_url(self, redirect_uri: Incomplete | None = None, **kwargs): ...
10
+ async def fetch_access_token(self, request_token: Incomplete | None = None, **kwargs): ...
11
+
12
+ class AsyncOAuth2Mixin(OAuth2Base):
13
+ async def load_server_metadata(self): ...
14
+ async def request(self, method, url, token: Incomplete | None = None, **kwargs): ...
15
+ async def create_authorization_url(self, redirect_uri: Incomplete | None = None, **kwargs): ...
16
+ async def fetch_access_token(self, redirect_uri: Incomplete | None = None, **kwargs): ...
@@ -0,0 +1,8 @@
1
+ from _typeshed import Incomplete
2
+
3
+ __all__ = ["AsyncOpenIDMixin"]
4
+
5
+ class AsyncOpenIDMixin:
6
+ async def fetch_jwk_set(self, force: bool = False): ...
7
+ async def userinfo(self, **kwargs): ...
8
+ async def parse_id_token(self, token, nonce, claims_options: Incomplete | None = None): ...
@@ -0,0 +1,23 @@
1
+ from authlib.common.errors import AuthlibBaseError
2
+
3
+ class OAuthError(AuthlibBaseError):
4
+ error: str
5
+
6
+ class MissingRequestTokenError(OAuthError):
7
+ error: str
8
+
9
+ class MissingTokenError(OAuthError):
10
+ error: str
11
+
12
+ class TokenExpiredError(OAuthError):
13
+ error: str
14
+
15
+ class InvalidTokenError(OAuthError):
16
+ error: str
17
+
18
+ class UnsupportedTokenTypeError(OAuthError):
19
+ error: str
20
+
21
+ class MismatchingStateError(OAuthError):
22
+ error: str
23
+ description: str
@@ -0,0 +1,13 @@
1
+ from _typeshed import Incomplete
2
+
3
+ class FrameworkIntegration:
4
+ expires_in: int
5
+ name: Incomplete
6
+ cache: Incomplete
7
+ def __init__(self, name, cache: Incomplete | None = None) -> None: ...
8
+ def get_state_data(self, session, state): ...
9
+ def set_state_data(self, session, state, data): ...
10
+ def clear_state_data(self, session, state): ...
11
+ def update_token(self, token, refresh_token: Incomplete | None = None, access_token: Incomplete | None = None) -> None: ...
12
+ @staticmethod
13
+ def load_config(oauth, name, params) -> None: ...
@@ -0,0 +1,21 @@
1
+ from _typeshed import Incomplete
2
+
3
+ from authlib.integrations.base_client import FrameworkIntegration
4
+
5
+ __all__ = ["BaseOAuth"]
6
+
7
+ class BaseOAuth:
8
+ oauth1_client_cls: Incomplete
9
+ oauth2_client_cls: Incomplete
10
+ framework_integration_cls: type[FrameworkIntegration] = ...
11
+ cache: Incomplete
12
+ fetch_token: Incomplete
13
+ update_token: Incomplete
14
+ def __init__(
15
+ self, cache: Incomplete | None = None, fetch_token: Incomplete | None = None, update_token: Incomplete | None = None
16
+ ) -> None: ...
17
+ def create_client(self, name): ...
18
+ def register(self, name, overwrite: bool = False, **kwargs): ...
19
+ def generate_client_kwargs(self, name, overwrite, **kwargs): ...
20
+ def load_config(self, name, params): ...
21
+ def __getattr__(self, key): ...
@@ -0,0 +1,93 @@
1
+ from _typeshed import Incomplete
2
+
3
+ class BaseApp:
4
+ client_cls: Incomplete
5
+ OAUTH_APP_CONFIG: Incomplete
6
+ def request(self, method, url, token: Incomplete | None = None, **kwargs): ...
7
+ def get(self, url, **kwargs): ...
8
+ def post(self, url, **kwargs): ...
9
+ def patch(self, url, **kwargs): ...
10
+ def put(self, url, **kwargs): ...
11
+ def delete(self, url, **kwargs): ...
12
+
13
+ class _RequestMixin: ...
14
+
15
+ class OAuth1Base:
16
+ client_cls: Incomplete
17
+ framework: Incomplete
18
+ name: Incomplete
19
+ client_id: Incomplete
20
+ client_secret: Incomplete
21
+ request_token_url: Incomplete
22
+ request_token_params: Incomplete
23
+ access_token_url: Incomplete
24
+ access_token_params: Incomplete
25
+ authorize_url: Incomplete
26
+ authorize_params: Incomplete
27
+ api_base_url: Incomplete
28
+ client_kwargs: Incomplete
29
+ def __init__(
30
+ self,
31
+ framework,
32
+ name: Incomplete | None = None,
33
+ fetch_token: Incomplete | None = None,
34
+ client_id: Incomplete | None = None,
35
+ client_secret: Incomplete | None = None,
36
+ request_token_url: Incomplete | None = None,
37
+ request_token_params: Incomplete | None = None,
38
+ access_token_url: Incomplete | None = None,
39
+ access_token_params: Incomplete | None = None,
40
+ authorize_url: Incomplete | None = None,
41
+ authorize_params: Incomplete | None = None,
42
+ api_base_url: Incomplete | None = None,
43
+ client_kwargs: Incomplete | None = None,
44
+ user_agent: Incomplete | None = None,
45
+ **kwargs,
46
+ ) -> None: ...
47
+
48
+ class OAuth1Mixin(_RequestMixin, OAuth1Base):
49
+ def request(self, method, url, token: Incomplete | None = None, **kwargs): ...
50
+ def create_authorization_url(self, redirect_uri: Incomplete | None = None, **kwargs): ...
51
+ def fetch_access_token(self, request_token: Incomplete | None = None, **kwargs): ...
52
+
53
+ class OAuth2Base:
54
+ client_cls: Incomplete
55
+ framework: Incomplete
56
+ name: Incomplete
57
+ client_id: Incomplete
58
+ client_secret: Incomplete
59
+ access_token_url: Incomplete
60
+ access_token_params: Incomplete
61
+ authorize_url: Incomplete
62
+ authorize_params: Incomplete
63
+ api_base_url: Incomplete
64
+ client_kwargs: Incomplete
65
+ compliance_fix: Incomplete
66
+ client_auth_methods: Incomplete
67
+ server_metadata: Incomplete
68
+ def __init__(
69
+ self,
70
+ framework,
71
+ name: Incomplete | None = None,
72
+ fetch_token: Incomplete | None = None,
73
+ update_token: Incomplete | None = None,
74
+ client_id: Incomplete | None = None,
75
+ client_secret: Incomplete | None = None,
76
+ access_token_url: Incomplete | None = None,
77
+ access_token_params: Incomplete | None = None,
78
+ authorize_url: Incomplete | None = None,
79
+ authorize_params: Incomplete | None = None,
80
+ api_base_url: Incomplete | None = None,
81
+ client_kwargs: Incomplete | None = None,
82
+ server_metadata_url: Incomplete | None = None,
83
+ compliance_fix: Incomplete | None = None,
84
+ client_auth_methods: Incomplete | None = None,
85
+ user_agent: Incomplete | None = None,
86
+ **kwargs,
87
+ ) -> None: ...
88
+
89
+ class OAuth2Mixin(_RequestMixin, OAuth2Base):
90
+ def request(self, method, url, token: Incomplete | None = None, **kwargs): ...
91
+ def load_server_metadata(self): ...
92
+ def create_authorization_url(self, redirect_uri: Incomplete | None = None, **kwargs): ...
93
+ def fetch_access_token(self, redirect_uri: Incomplete | None = None, **kwargs): ...
@@ -0,0 +1,7 @@
1
+ from _typeshed import Incomplete
2
+
3
+ class OpenIDMixin:
4
+ def fetch_jwk_set(self, force: bool = False): ...
5
+ def userinfo(self, **kwargs): ...
6
+ def parse_id_token(self, token, nonce, claims_options: Incomplete | None = None, leeway: int = 120): ...
7
+ def create_load_key(self): ...