okta-client-python 0.1.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 (89) hide show
  1. okta_client_python-0.1.0/CHANGELOG.md +20 -0
  2. okta_client_python-0.1.0/LICENSE +171 -0
  3. okta_client_python-0.1.0/MANIFEST.in +7 -0
  4. okta_client_python-0.1.0/PKG-INFO +936 -0
  5. okta_client_python-0.1.0/README.md +899 -0
  6. okta_client_python-0.1.0/pyproject.toml +102 -0
  7. okta_client_python-0.1.0/requirements.txt +1 -0
  8. okta_client_python-0.1.0/setup.cfg +4 -0
  9. okta_client_python-0.1.0/src/okta_client/__init__.py +20 -0
  10. okta_client_python-0.1.0/src/okta_client/authfoundation/__init__.py +197 -0
  11. okta_client_python-0.1.0/src/okta_client/authfoundation/authentication.py +247 -0
  12. okta_client_python-0.1.0/src/okta_client/authfoundation/coalesced_result.py +113 -0
  13. okta_client_python-0.1.0/src/okta_client/authfoundation/codable.py +72 -0
  14. okta_client_python-0.1.0/src/okta_client/authfoundation/expires.py +49 -0
  15. okta_client_python-0.1.0/src/okta_client/authfoundation/key_provider.py +130 -0
  16. okta_client_python-0.1.0/src/okta_client/authfoundation/networking/__init__.py +56 -0
  17. okta_client_python-0.1.0/src/okta_client/authfoundation/networking/body.py +46 -0
  18. okta_client_python-0.1.0/src/okta_client/authfoundation/networking/client.py +200 -0
  19. okta_client_python-0.1.0/src/okta_client/authfoundation/networking/types.py +293 -0
  20. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/__init__.py +104 -0
  21. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/claims.py +44 -0
  22. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/client.py +402 -0
  23. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/client_authorization.py +172 -0
  24. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/config.py +298 -0
  25. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/errors.py +32 -0
  26. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/jwt_bearer_claims.py +59 -0
  27. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/jwt_bearer_utils.py +30 -0
  28. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/jwt_context.py +52 -0
  29. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/jwt_token.py +214 -0
  30. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/models.py +198 -0
  31. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/parameters.py +36 -0
  32. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/refresh_token.py +165 -0
  33. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/request_protocols.py +174 -0
  34. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/requests/__init__.py +37 -0
  35. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/requests/introspect.py +50 -0
  36. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/requests/jwks.py +44 -0
  37. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/requests/oauth_authorization_server.py +44 -0
  38. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/requests/openid_configuration.py +47 -0
  39. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/requests/revoke.py +54 -0
  40. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/requests/user_info.py +37 -0
  41. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/utils.py +25 -0
  42. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/validation_protocols.py +33 -0
  43. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/validator_registry.py +64 -0
  44. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/validators/token_hash.py +37 -0
  45. okta_client_python-0.1.0/src/okta_client/authfoundation/oauth2/validators/token_validator.py +26 -0
  46. okta_client_python-0.1.0/src/okta_client/authfoundation/time_coordinator.py +57 -0
  47. okta_client_python-0.1.0/src/okta_client/authfoundation/token.py +201 -0
  48. okta_client_python-0.1.0/src/okta_client/authfoundation/user_agent.py +80 -0
  49. okta_client_python-0.1.0/src/okta_client/authfoundation/utils.py +63 -0
  50. okta_client_python-0.1.0/src/okta_client/browser_signin/__init__.py +11 -0
  51. okta_client_python-0.1.0/src/okta_client/directauth/__init__.py +11 -0
  52. okta_client_python-0.1.0/src/okta_client/oauth2auth/__init__.py +63 -0
  53. okta_client_python-0.1.0/src/okta_client/oauth2auth/authorization_code.py +594 -0
  54. okta_client_python-0.1.0/src/okta_client/oauth2auth/cross_app.py +626 -0
  55. okta_client_python-0.1.0/src/okta_client/oauth2auth/jwt_bearer.py +182 -0
  56. okta_client_python-0.1.0/src/okta_client/oauth2auth/resource_owner.py +159 -0
  57. okta_client_python-0.1.0/src/okta_client/oauth2auth/token_exchange.py +380 -0
  58. okta_client_python-0.1.0/src/okta_client/oauth2auth/utils.py +87 -0
  59. okta_client_python-0.1.0/src/okta_client/py.typed +0 -0
  60. okta_client_python-0.1.0/src/okta_client_python.egg-info/PKG-INFO +936 -0
  61. okta_client_python-0.1.0/src/okta_client_python.egg-info/SOURCES.txt +87 -0
  62. okta_client_python-0.1.0/src/okta_client_python.egg-info/dependency_links.txt +1 -0
  63. okta_client_python-0.1.0/src/okta_client_python.egg-info/requires.txt +12 -0
  64. okta_client_python-0.1.0/src/okta_client_python.egg-info/top_level.txt +1 -0
  65. okta_client_python-0.1.0/tests/test_api_types.py +38 -0
  66. okta_client_python-0.1.0/tests/test_authentication.py +122 -0
  67. okta_client_python-0.1.0/tests/test_authorization_code_flow.py +738 -0
  68. okta_client_python-0.1.0/tests/test_claims_protocol.py +64 -0
  69. okta_client_python-0.1.0/tests/test_client_authorization.py +152 -0
  70. okta_client_python-0.1.0/tests/test_coalesced_result.py +144 -0
  71. okta_client_python-0.1.0/tests/test_configuration_loading.py +98 -0
  72. okta_client_python-0.1.0/tests/test_cross_app_flow.py +717 -0
  73. okta_client_python-0.1.0/tests/test_expires.py +64 -0
  74. okta_client_python-0.1.0/tests/test_granted_token_type.py +91 -0
  75. okta_client_python-0.1.0/tests/test_jwt_bearer_claims.py +82 -0
  76. okta_client_python-0.1.0/tests/test_jwt_bearer_flow.py +273 -0
  77. okta_client_python-0.1.0/tests/test_jwt_claims.py +243 -0
  78. okta_client_python-0.1.0/tests/test_key_provider.py +97 -0
  79. okta_client_python-0.1.0/tests/test_listener_collection.py +49 -0
  80. okta_client_python-0.1.0/tests/test_networking.py +178 -0
  81. okta_client_python-0.1.0/tests/test_oauth2_client.py +400 -0
  82. okta_client_python-0.1.0/tests/test_oauth2_exchange.py +229 -0
  83. okta_client_python-0.1.0/tests/test_refresh_token_flow.py +226 -0
  84. okta_client_python-0.1.0/tests/test_resource_owner_flow.py +102 -0
  85. okta_client_python-0.1.0/tests/test_time_coordinator.py +40 -0
  86. okta_client_python-0.1.0/tests/test_token.py +216 -0
  87. okta_client_python-0.1.0/tests/test_token_exchange_flow.py +497 -0
  88. okta_client_python-0.1.0/tests/test_token_validation.py +510 -0
  89. okta_client_python-0.1.0/tests/test_user_agent.py +172 -0
@@ -0,0 +1,20 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Added
11
+
12
+ - Initial SDK release with core networking, OAuth 2.0 / OpenID Connect support.
13
+ - Authentication flows: Resource Owner, Authorization Code (with PKCE & PAR), JWT Bearer, Token Exchange, Device Authorization, Refresh Token.
14
+ - Cross-App Authorization flow for AI agent use cases.
15
+ - Browser-based sign-in integration via `browser_signin` module.
16
+ - Token lifecycle management with credential storage.
17
+ - JWT creation, parsing, and validation (JWK / JWKS).
18
+ - OpenID Connect discovery and configuration caching.
19
+ - Listener-based extensibility for API clients, OAuth2 clients, and authentication flows.
20
+ - `pyproject.toml`-based packaging with PEP 561 `py.typed` marker.
@@ -0,0 +1,171 @@
1
+ Copyright (c) 2026-Present, Okta, Inc.
2
+
3
+ Apache License
4
+ Version 2.0, January 2004
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction, and
12
+ distribution as defined by Sections 1 through 9 of this document.
13
+
14
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright
15
+ owner that is granting the License.
16
+
17
+ "Legal Entity" shall mean the union of the acting entity and all other entities
18
+ that control, are controlled by, or are under common control with that entity.
19
+ For the purposes of this definition, "control" means (i) the power, direct or
20
+ indirect, to cause the direction or management of such entity, whether by
21
+ contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ You" (or "Your") shall mean an individual or Legal Entity exercising
25
+ permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications, including
28
+ but not limited to software source code, documentation source, and
29
+ configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical transformation or
32
+ translation of a Source form, including but not limited to compiled object
33
+ code, generated documentation, and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or Object form,
36
+ made available under the License, as indicated by a copyright notice that is
37
+ included in or attached to the work (an example is provided in the Appendix
38
+ below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object form, that
41
+ is based on (or derived from) the Work and for which the editorial revisions,
42
+ annotations, elaborations, or other modifications represent, as a whole, an
43
+ original work of authorship. For the purposes of this License, Derivative Works
44
+ shall not include works that remain separable from, or merely link (or bind by
45
+ name) to the interfaces of, the Work and Derivative Works thereof.
46
+
47
+ "Contribution" shall mean any work of authorship, including the original
48
+ version of the Work and any modifications or additions to that Work or
49
+ Derivative Works thereof, that is intentionally submitted to Licensor for
50
+ inclusion in the Work by the copyright owner or by an individual or Legal
51
+ Entity authorized to submit on behalf of the copyright owner. For the purposes
52
+ of this definition, "submitted" means any form of electronic, verbal, or
53
+ written communication sent to the Licensor or its representatives, including
54
+ but not limited to communication on electronic mailing lists, source code
55
+ control systems, and issue tracking systems that are managed by, or on behalf
56
+ of, the Licensor for the purpose of discussing and improving the Work, but
57
+ excluding communication that is conspicuously marked or otherwise designated in
58
+ writing by the copyright owner as "Not a Contribution."
59
+
60
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf
61
+ of whom a Contribution has been received by Licensor and subsequently
62
+ incorporated within the Work.
63
+ 2. Grant of Copyright License. Subject to the terms and conditions of this
64
+ License, each Contributor hereby grants to You a perpetual, worldwide,
65
+ non-exclusive, no-charge, royalty-free, irrevocable copyright license to
66
+ reproduce, prepare Derivative Works of, publicly display, publicly perform,
67
+ sublicense, and distribute the Work and such Derivative Works in Source or
68
+ Object form.
69
+
70
+ 3. Grant of Patent License. Subject to the terms and conditions of this
71
+ License, each Contributor hereby grants to You a perpetual, worldwide,
72
+ non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this
73
+ section) patent license to make, have made, use, offer to sell, sell, import,
74
+ and otherwise transfer the Work, where such license applies only to those
75
+ patent claims licensable by such Contributor that are necessarily infringed by
76
+ their Contribution(s) alone or by combination of their Contribution(s) with the
77
+ Work to which such Contribution(s) was submitted. If You institute patent
78
+ litigation against any entity (including a cross-claim or counterclaim in a
79
+ lawsuit) alleging that the Work or a Contribution incorporated within the Work
80
+ constitutes direct or contributory patent infringement, then any patent
81
+ licenses granted to You under this License for that Work shall terminate as of
82
+ the date such litigation is filed.
83
+
84
+ 4. Redistribution. You may reproduce and distribute copies of the Work or
85
+ Derivative Works thereof in any medium, with or without modifications, and in
86
+ Source or Object form, provided that You meet the following conditions:
87
+
88
+ (a) You must give any other recipients of the Work or Derivative Works a copy
89
+ of this License; and
90
+
91
+ (b) You must cause any modified files to carry prominent notices stating that
92
+ You changed the files; and
93
+
94
+ (c) You must retain, in the Source form of any Derivative Works that You
95
+ distribute, all copyright, patent, trademark, and attribution notices from the
96
+ Source form of the Work, excluding those notices that do not pertain to any
97
+ part of the Derivative Works; and
98
+
99
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then
100
+ any Derivative Works that You distribute must include a readable copy of the
101
+ attribution notices contained within such NOTICE file, excluding those notices
102
+ that do not pertain to any part of the Derivative Works, in at least one of the
103
+ following places: within a NOTICE text file distributed as part of the
104
+ Derivative Works; within the Source form or documentation, if provided along
105
+ with the Derivative Works; or, within a display generated by the Derivative
106
+ Works, if and wherever such third-party notices normally appear. The contents
107
+ of the NOTICE file are for informational purposes only and do not modify the
108
+ License. You may add Your own attribution notices within Derivative Works that
109
+ You distribute, alongside or as an addendum to the NOTICE text from the Work,
110
+ provided that such additional attribution notices cannot be construed as
111
+ modifying the License.
112
+
113
+ You may add Your own copyright statement to Your modifications and may provide
114
+ additional or different license terms and conditions for use, reproduction, or
115
+ distribution of Your modifications, or for any such Derivative Works as a
116
+ whole, provided Your use, reproduction, and distribution of the Work otherwise
117
+ complies with the conditions stated in this License.
118
+
119
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any
120
+ Contribution intentionally submitted for inclusion in the Work by You to the
121
+ Licensor shall be under the terms and conditions of this License, without any
122
+ additional terms or conditions. Notwithstanding the above, nothing herein shall
123
+ supersede or modify the terms of any separate license agreement you may have
124
+ executed with Licensor regarding such Contributions.
125
+
126
+ 6. Trademarks. This License does not grant permission to use the trade names,
127
+ trademarks, service marks, or product names of the Licensor, except as required
128
+ for reasonable and customary use in describing the origin of the Work and
129
+ reproducing the content of the NOTICE file.
130
+
131
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
132
+ writing, Licensor provides the Work (and each Contributor provides its
133
+ Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
134
+ KIND, either express or implied, including, without limitation, any warranties
135
+ or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
136
+ PARTICULAR PURPOSE. You are solely responsible for determining the
137
+ appropriateness of using or redistributing the Work and assume any risks
138
+ associated with Your exercise of permissions under this License.
139
+
140
+ 8. Limitation of Liability. In no event and under no legal theory, whether in
141
+ tort (including negligence), contract, or otherwise, unless required by
142
+ applicable law (such as deliberate and grossly negligent acts) or agreed to in
143
+ writing, shall any Contributor be liable to You for damages, including any
144
+ direct, indirect, special, incidental, or consequential damages of any
145
+ character arising as a result of this License or out of the use or inability to
146
+ use the Work (including but not limited to damages for loss of goodwill, work
147
+ stoppage, computer failure or malfunction, or any and all other commercial
148
+ damages or losses), even if such Contributor has been advised of the
149
+ possibility of such damages.
150
+
151
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or
152
+ Derivative Works thereof, You may choose to offer, and charge a fee for,
153
+ acceptance of support, warranty, indemnity, or other liability obligations
154
+ and/or rights consistent with this License. However, in accepting such
155
+ obligations, You may act only on Your own behalf and on Your sole
156
+ responsibility, not on behalf of any other Contributor, and only if You agree
157
+ to indemnify, defend, and hold each Contributor harmless for any liability
158
+ incurred by, or claims asserted against, such Contributor by reason of your
159
+ accepting any such warranty or additional liability.
160
+
161
+ END OF TERMS AND CONDITIONS
162
+
163
+ APPENDIX: How to apply the Apache License to your work.
164
+
165
+ To apply the Apache License to your work, attach the following boilerplate
166
+ notice, with the fields enclosed by brackets "[]" replaced with your own
167
+ identifying information. (Don't include the brackets!) The text should be
168
+ enclosed in the appropriate comment syntax for the file format. We also
169
+ recommend that a file or class name and description of purpose be included on
170
+ the same "printed page" as the copyright notice for easier identification
171
+ within third-party archives.
@@ -0,0 +1,7 @@
1
+ include LICENSE
2
+ include README.md
3
+ include CHANGELOG.md
4
+ include pyproject.toml
5
+ include requirements.txt
6
+
7
+ recursive-include src/okta_client py.typed