swarmauri_auth_idp_okta 0.2.0.dev5__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.
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [2025] [Jacob Stewart @ Swarmauri]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,147 @@
1
+ Metadata-Version: 2.4
2
+ Name: swarmauri_auth_idp_okta
3
+ Version: 0.2.0.dev5
4
+ Summary: Okta OAuth 2.0 / OAuth 2.1 / OIDC 1.0 identity provider implementations for Swarmauri
5
+ License-Expression: Apache-2.0
6
+ License-File: LICENSE
7
+ Keywords: swarmauri,sdk,experimental,identity,oauth2,oauth21,oidc,okta,idp
8
+ Author: Jacob Stewart
9
+ Author-email: jacob@swarmauri.com
10
+ Requires-Python: >=3.10,<3.13
11
+ Classifier: Development Status :: 1 - Planning
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Natural Language :: English
15
+ Classifier: Programming Language :: Python
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Internet :: WWW/HTTP
22
+ Classifier: Topic :: Security :: Cryptography
23
+ Requires-Dist: httpx (>=0.27)
24
+ Requires-Dist: pyjwt[crypto] (>=2.8)
25
+ Requires-Dist: swarmauri_base
26
+ Requires-Dist: swarmauri_core
27
+ Description-Content-Type: text/markdown
28
+
29
+ ![Swarmauri Logo](https://github.com/swarmauri/swarmauri-sdk/blob/master/assets/swarmauri.brand.theme.svg)
30
+
31
+ <p align="center">
32
+ <a href="https://pypi.org/project/swarmauri_auth_idp_okta/">
33
+ <img src="https://img.shields.io/pypi/dm/swarmauri_auth_idp_okta" alt="PyPI - Downloads"/></a>
34
+ <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/experimental/swarmauri_auth_idp_okta/">
35
+ <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/experimental/swarmauri_auth_idp_okta.svg"/></a>
36
+ <a href="https://pypi.org/project/swarmauri_auth_idp_okta/">
37
+ <img src="https://img.shields.io/pypi/pyversions/swarmauri_auth_idp_okta" alt="PyPI - Python Version"/></a>
38
+ <a href="https://pypi.org/project/swarmauri_auth_idp_okta/">
39
+ <img src="https://img.shields.io/pypi/l/swarmauri_auth_idp_okta" alt="PyPI - License"/></a>
40
+ <a href="https://pypi.org/project/swarmauri_auth_idp_okta/">
41
+ <img src="https://img.shields.io/pypi/v/swarmauri_auth_idp_okta?label=swarmauri_auth_idp_okta&color=green" alt="PyPI - swarmauri_auth_idp_okta"/></a>
42
+ </p>
43
+
44
+ ---
45
+
46
+ # Swarmauri Auth IDP Okta
47
+
48
+ Okta OAuth 2.0 / OAuth 2.1 / OIDC 1.0 identity providers packaged for Swarmauri deployments.
49
+
50
+ ## Features
51
+
52
+ - PKCE-enabled Authorization Code flows that integrate with Okta authorization servers.
53
+ - Machine-to-machine app clients for Okta OAuth 2.0, OAuth 2.1 (private key JWT), and OIDC 1.0.
54
+ - Discovery-driven OAuth 2.1/OIDC login that verifies ID tokens using Okta JWKS.
55
+ - UserInfo enrichment for deployments that require full user profile hydration.
56
+ - Retry-aware HTTP integration tuned for Okta endpoints.
57
+ - ComponentBase-compatible models registered under `swarmauri.auth_idp` entry points.
58
+
59
+ ## Installation
60
+
61
+ ### pip
62
+
63
+ ```bash
64
+ pip install swarmauri_auth_idp_okta
65
+ ```
66
+
67
+ ### uv (project)
68
+
69
+ ```bash
70
+ uv add swarmauri_auth_idp_okta
71
+ ```
72
+
73
+ ### uv (environment)
74
+
75
+ ```bash
76
+ uv pip install swarmauri_auth_idp_okta
77
+ ```
78
+
79
+ ## Usage
80
+
81
+ ```python
82
+ import asyncio
83
+ from pydantic import SecretBytes, SecretStr
84
+ from swarmauri_auth_idp_okta import OktaOAuth20Login
85
+
86
+ login = OktaOAuth20Login(
87
+ issuer="https://example.okta.com/oauth2/default",
88
+ client_id="okta-client-id",
89
+ client_secret=SecretStr("okta-client-secret"),
90
+ redirect_uri="https://app.example.com/callback",
91
+ state_secret=SecretBytes(b"replace-with-random-bytes"),
92
+ )
93
+
94
+ async def run_flow() -> None:
95
+ auth = await login.auth_url()
96
+ print(auth["url"])
97
+ # Redirect the browser to `auth["url"]`, then capture the callback `code` and `state`.
98
+ # Later, call `login.exchange_and_identity(code, state)` inside your callback handler.
99
+
100
+ asyncio.run(run_flow())
101
+ ```
102
+
103
+ ### Workflow Summary
104
+
105
+ 1. Call `auth_url()` and redirect the browser to the returned URL.
106
+ 2. Persist the `state` and verify it during the callback handler.
107
+ 3. Exchange the authorization code through `exchange_and_identity()` to obtain tokens and profile metadata.
108
+
109
+ ### Server-to-server client credentials
110
+
111
+ ```python
112
+ import asyncio
113
+ from pydantic import SecretStr
114
+ from swarmauri_auth_idp_okta import OktaOAuth20AppClient
115
+
116
+ client = OktaOAuth20AppClient(
117
+ issuer="https://example.okta.com/oauth2/default",
118
+ client_id="machine-client-id",
119
+ client_secret=SecretStr("machine-client-secret"),
120
+ )
121
+
122
+ async def fetch_token() -> None:
123
+ token = await client.access_token(scope="customScope")
124
+ print(token)
125
+
126
+ asyncio.run(fetch_token())
127
+ ```
128
+
129
+ Use `OktaOAuth21AppClient` when the integration should authenticate with
130
+ `private_key_jwt`, or `OktaOIDC10AppClient` to rely on discovery metadata for
131
+ tenant-specific token endpoints.
132
+
133
+ ## Entry Points
134
+
135
+ - `swarmauri.auth_idp:OktaOAuth20AppClient`
136
+ - `swarmauri.auth_idp:OktaOAuth20Login`
137
+ - `swarmauri.auth_idp:OktaOAuth21AppClient`
138
+ - `swarmauri.auth_idp:OktaOAuth21Login`
139
+ - `swarmauri.auth_idp:OktaOIDC10AppClient`
140
+ - `swarmauri.auth_idp:OktaOIDC10Login`
141
+
142
+ ## Contributing
143
+
144
+ To contribute to swarmauri-sdk, review the
145
+ [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md)
146
+ which cover development workflow, testing, and coding standards.
147
+
@@ -0,0 +1,118 @@
1
+ ![Swarmauri Logo](https://github.com/swarmauri/swarmauri-sdk/blob/master/assets/swarmauri.brand.theme.svg)
2
+
3
+ <p align="center">
4
+ <a href="https://pypi.org/project/swarmauri_auth_idp_okta/">
5
+ <img src="https://img.shields.io/pypi/dm/swarmauri_auth_idp_okta" alt="PyPI - Downloads"/></a>
6
+ <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/experimental/swarmauri_auth_idp_okta/">
7
+ <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/experimental/swarmauri_auth_idp_okta.svg"/></a>
8
+ <a href="https://pypi.org/project/swarmauri_auth_idp_okta/">
9
+ <img src="https://img.shields.io/pypi/pyversions/swarmauri_auth_idp_okta" alt="PyPI - Python Version"/></a>
10
+ <a href="https://pypi.org/project/swarmauri_auth_idp_okta/">
11
+ <img src="https://img.shields.io/pypi/l/swarmauri_auth_idp_okta" alt="PyPI - License"/></a>
12
+ <a href="https://pypi.org/project/swarmauri_auth_idp_okta/">
13
+ <img src="https://img.shields.io/pypi/v/swarmauri_auth_idp_okta?label=swarmauri_auth_idp_okta&color=green" alt="PyPI - swarmauri_auth_idp_okta"/></a>
14
+ </p>
15
+
16
+ ---
17
+
18
+ # Swarmauri Auth IDP Okta
19
+
20
+ Okta OAuth 2.0 / OAuth 2.1 / OIDC 1.0 identity providers packaged for Swarmauri deployments.
21
+
22
+ ## Features
23
+
24
+ - PKCE-enabled Authorization Code flows that integrate with Okta authorization servers.
25
+ - Machine-to-machine app clients for Okta OAuth 2.0, OAuth 2.1 (private key JWT), and OIDC 1.0.
26
+ - Discovery-driven OAuth 2.1/OIDC login that verifies ID tokens using Okta JWKS.
27
+ - UserInfo enrichment for deployments that require full user profile hydration.
28
+ - Retry-aware HTTP integration tuned for Okta endpoints.
29
+ - ComponentBase-compatible models registered under `swarmauri.auth_idp` entry points.
30
+
31
+ ## Installation
32
+
33
+ ### pip
34
+
35
+ ```bash
36
+ pip install swarmauri_auth_idp_okta
37
+ ```
38
+
39
+ ### uv (project)
40
+
41
+ ```bash
42
+ uv add swarmauri_auth_idp_okta
43
+ ```
44
+
45
+ ### uv (environment)
46
+
47
+ ```bash
48
+ uv pip install swarmauri_auth_idp_okta
49
+ ```
50
+
51
+ ## Usage
52
+
53
+ ```python
54
+ import asyncio
55
+ from pydantic import SecretBytes, SecretStr
56
+ from swarmauri_auth_idp_okta import OktaOAuth20Login
57
+
58
+ login = OktaOAuth20Login(
59
+ issuer="https://example.okta.com/oauth2/default",
60
+ client_id="okta-client-id",
61
+ client_secret=SecretStr("okta-client-secret"),
62
+ redirect_uri="https://app.example.com/callback",
63
+ state_secret=SecretBytes(b"replace-with-random-bytes"),
64
+ )
65
+
66
+ async def run_flow() -> None:
67
+ auth = await login.auth_url()
68
+ print(auth["url"])
69
+ # Redirect the browser to `auth["url"]`, then capture the callback `code` and `state`.
70
+ # Later, call `login.exchange_and_identity(code, state)` inside your callback handler.
71
+
72
+ asyncio.run(run_flow())
73
+ ```
74
+
75
+ ### Workflow Summary
76
+
77
+ 1. Call `auth_url()` and redirect the browser to the returned URL.
78
+ 2. Persist the `state` and verify it during the callback handler.
79
+ 3. Exchange the authorization code through `exchange_and_identity()` to obtain tokens and profile metadata.
80
+
81
+ ### Server-to-server client credentials
82
+
83
+ ```python
84
+ import asyncio
85
+ from pydantic import SecretStr
86
+ from swarmauri_auth_idp_okta import OktaOAuth20AppClient
87
+
88
+ client = OktaOAuth20AppClient(
89
+ issuer="https://example.okta.com/oauth2/default",
90
+ client_id="machine-client-id",
91
+ client_secret=SecretStr("machine-client-secret"),
92
+ )
93
+
94
+ async def fetch_token() -> None:
95
+ token = await client.access_token(scope="customScope")
96
+ print(token)
97
+
98
+ asyncio.run(fetch_token())
99
+ ```
100
+
101
+ Use `OktaOAuth21AppClient` when the integration should authenticate with
102
+ `private_key_jwt`, or `OktaOIDC10AppClient` to rely on discovery metadata for
103
+ tenant-specific token endpoints.
104
+
105
+ ## Entry Points
106
+
107
+ - `swarmauri.auth_idp:OktaOAuth20AppClient`
108
+ - `swarmauri.auth_idp:OktaOAuth20Login`
109
+ - `swarmauri.auth_idp:OktaOAuth21AppClient`
110
+ - `swarmauri.auth_idp:OktaOAuth21Login`
111
+ - `swarmauri.auth_idp:OktaOIDC10AppClient`
112
+ - `swarmauri.auth_idp:OktaOIDC10Login`
113
+
114
+ ## Contributing
115
+
116
+ To contribute to swarmauri-sdk, review the
117
+ [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md)
118
+ which cover development workflow, testing, and coding standards.
@@ -0,0 +1,87 @@
1
+ [project]
2
+ name = "swarmauri_auth_idp_okta"
3
+ version = "0.2.0.dev5"
4
+ description = "Okta OAuth 2.0 / OAuth 2.1 / OIDC 1.0 identity provider implementations for Swarmauri"
5
+ license = "Apache-2.0"
6
+ readme = "README.md"
7
+ requires-python = ">=3.10,<3.13"
8
+ repository = "https://github.com/swarmauri/swarmauri-sdk"
9
+ authors = [{ name = "Jacob Stewart", email = "jacob@swarmauri.com" }]
10
+ classifiers = [
11
+ "Development Status :: 1 - Planning",
12
+ "Intended Audience :: Developers",
13
+ "License :: OSI Approved :: Apache Software License",
14
+ "Natural Language :: English",
15
+ "Programming Language :: Python",
16
+ "Programming Language :: Python :: 3",
17
+ "Programming Language :: Python :: 3 :: Only",
18
+ "Programming Language :: Python :: 3.10",
19
+ "Programming Language :: Python :: 3.11",
20
+ "Programming Language :: Python :: 3.12",
21
+ "Topic :: Internet :: WWW/HTTP",
22
+ "Topic :: Security :: Cryptography",
23
+ ]
24
+ keywords = [
25
+ "swarmauri",
26
+ "sdk",
27
+ "experimental",
28
+ "identity",
29
+ "oauth2",
30
+ "oauth21",
31
+ "oidc",
32
+ "okta",
33
+ "idp",
34
+ ]
35
+ dependencies = [
36
+ "swarmauri_core",
37
+ "swarmauri_base",
38
+ "httpx>=0.27",
39
+ "pyjwt[crypto]>=2.8",
40
+ ]
41
+
42
+ [project.entry-points.'swarmauri.auth_idp']
43
+ OktaOAuth20AppClient = "swarmauri_auth_idp_okta:OktaOAuth20AppClient"
44
+ OktaOAuth20Login = "swarmauri_auth_idp_okta:OktaOAuth20Login"
45
+ OktaOAuth21AppClient = "swarmauri_auth_idp_okta:OktaOAuth21AppClient"
46
+ OktaOAuth21Login = "swarmauri_auth_idp_okta:OktaOAuth21Login"
47
+ OktaOIDC10AppClient = "swarmauri_auth_idp_okta:OktaOIDC10AppClient"
48
+ OktaOIDC10Login = "swarmauri_auth_idp_okta:OktaOIDC10Login"
49
+
50
+ [tool.uv.sources]
51
+ swarmauri_tests_pylicense = { workspace = true }
52
+ swarmauri_core = { workspace = true }
53
+ swarmauri_base = { workspace = true }
54
+
55
+ [tool.pytest.ini_options]
56
+ markers = [
57
+ "test: standard test",
58
+ "unit: Unit tests",
59
+ "i9n: Integration tests",
60
+ "r8n: Regression tests",
61
+ "acceptance: Acceptance tests",
62
+ "perf: Performance tests",
63
+ "example: Documentation examples",
64
+ ]
65
+ timeout = 300
66
+ log_cli = true
67
+ log_cli_level = "INFO"
68
+ log_cli_format = "%(asctime)s [%(levelname)s] %(message)s"
69
+ log_cli_date_format = "%Y-%m-%d %H:%M:%S"
70
+ asyncio_default_fixture_loop_scope = "function"
71
+ addopts = "--pylicense-accept-deps=sniffio"
72
+
73
+ [dependency-groups]
74
+ dev = [
75
+ "pytest>=8.0",
76
+ "pytest-asyncio>=0.24.0",
77
+ "pytest-xdist>=3.6.1",
78
+ "pytest-json-report>=1.5.0",
79
+ "pytest-timeout>=2.3.1",
80
+ "pytest-benchmark>=4.0.0",
81
+ "ruff>=0.9.9",
82
+ "swarmauri_tests_pylicense",
83
+ ]
84
+
85
+ [build-system]
86
+ requires = ["poetry-core>=1.0.0"]
87
+ build-backend = "poetry.core.masonry.api"
@@ -0,0 +1,66 @@
1
+ """Okta OAuth 2.0 client credentials app client implementation."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import time
6
+ from typing import Callable, Optional, Tuple
7
+
8
+ from pydantic import ConfigDict, Field, PrivateAttr, SecretStr
9
+
10
+ from swarmauri_base.ComponentBase import ComponentBase
11
+ from swarmauri_base.auth_idp import OAuth20AppClientBase, RetryingAsyncClient
12
+
13
+
14
+ @ComponentBase.register_type(OAuth20AppClientBase, "OktaOAuth20AppClient")
15
+ class OktaOAuth20AppClient(OAuth20AppClientBase):
16
+ """Request machine-to-machine access tokens from an Okta authorization server."""
17
+
18
+ model_config = ConfigDict(extra="forbid", arbitrary_types_allowed=True)
19
+
20
+ issuer: str
21
+ client_id: str
22
+ client_secret: SecretStr
23
+ cache_skew_seconds: int = Field(default=30, ge=0)
24
+ http_client_factory: Callable[[], RetryingAsyncClient] = Field(
25
+ default=RetryingAsyncClient, exclude=True, repr=False
26
+ )
27
+
28
+ _cached_token: Optional[Tuple[str, float]] = PrivateAttr(default=None)
29
+
30
+ def _token_endpoint(self) -> str:
31
+ return f"{self.issuer.rstrip('/')}/v1/token"
32
+
33
+ def _client_secret_value(self) -> str:
34
+ return self.client_secret.get_secret_value()
35
+
36
+ async def _fetch_token(self, scope: Optional[str]) -> Tuple[str, float]:
37
+ form = {"grant_type": "client_credentials"}
38
+ if scope:
39
+ form["scope"] = scope
40
+ auth = (self.client_id, self._client_secret_value())
41
+ async with self.http_client_factory() as client:
42
+ response = await client.post_retry(
43
+ self._token_endpoint(),
44
+ data=form,
45
+ auth=auth,
46
+ headers={"Accept": "application/json"},
47
+ )
48
+ response.raise_for_status()
49
+ payload = response.json()
50
+ token = payload.get("access_token")
51
+ if not token:
52
+ raise ValueError("access_token missing from Okta response")
53
+ expires_at = time.time() + int(payload.get("expires_in", 3600))
54
+ return token, expires_at
55
+
56
+ async def access_token(self, scope: Optional[str] = None) -> str:
57
+ cached = self._cached_token
58
+ now = time.time()
59
+ if cached and now < cached[1] - self.cache_skew_seconds:
60
+ return cached[0]
61
+ token, expires_at = await self._fetch_token(scope)
62
+ self._cached_token = (token, expires_at)
63
+ return token
64
+
65
+
66
+ __all__ = ["OktaOAuth20AppClient"]
@@ -0,0 +1,36 @@
1
+ """Okta OAuth 2.0 Authorization Code login implementation."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Any, Mapping
6
+
7
+ from swarmauri_base.ComponentBase import ComponentBase
8
+ from swarmauri_base.auth_idp import OAuth20LoginBase
9
+
10
+ from .OktaOAuthLoginMixin import OktaOAuthLoginMixin
11
+
12
+
13
+ @ComponentBase.register_type(OAuth20LoginBase, "OktaOAuth20Login")
14
+ class OktaOAuth20Login(OktaOAuthLoginMixin, OAuth20LoginBase):
15
+ """Implement the Okta OAuth 2.0 Authorization Code flow with PKCE."""
16
+
17
+ async def auth_url(self) -> Mapping[str, str]:
18
+ payload = await self._auth_payload()
19
+ return {"url": payload["url"], "state": payload["state"]}
20
+
21
+ async def exchange_and_identity(self, code: str, state: str) -> Mapping[str, Any]:
22
+ tokens = await self._exchange_tokens(code, state)
23
+ profile = await self._fetch_userinfo(tokens["access_token"])
24
+ subject = (
25
+ profile.get("sub")
26
+ or profile.get("uid")
27
+ or profile.get("sub_id")
28
+ or profile.get("id")
29
+ )
30
+ return {
31
+ "issuer": "okta-oauth20",
32
+ "sub": subject,
33
+ "email": profile.get("email"),
34
+ "name": profile.get("name") or profile.get("given_name"),
35
+ "raw": {"tokens": tokens, "userinfo": profile},
36
+ }
@@ -0,0 +1,117 @@
1
+ """Okta OAuth 2.1 client credentials app client implementation."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import json
6
+ import time
7
+ from typing import Any, Callable, Dict, Mapping, Optional, Tuple
8
+
9
+ import jwt
10
+ from pydantic import ConfigDict, Field, PrivateAttr, SecretStr
11
+
12
+ from swarmauri_base.ComponentBase import ComponentBase
13
+ from swarmauri_base.auth_idp import OAuth21AppClientBase, RetryingAsyncClient
14
+
15
+
16
+ ASSERTION_TYPE = "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
17
+
18
+
19
+ @ComponentBase.register_type(OAuth21AppClientBase, "OktaOAuth21AppClient")
20
+ class OktaOAuth21AppClient(OAuth21AppClientBase):
21
+ """Request OAuth 2.1 tokens from Okta using secrets or private key JWT assertions."""
22
+
23
+ model_config = ConfigDict(extra="forbid", arbitrary_types_allowed=True)
24
+
25
+ issuer: str
26
+ client_id: str
27
+ client_secret: Optional[SecretStr] = None
28
+ private_key_jwk: Optional[Dict[str, Any]] = None
29
+ cache_skew_seconds: int = Field(default=30, ge=0)
30
+ assertion_lifetime_seconds: int = Field(default=300, ge=60)
31
+ http_client_factory: Callable[[], RetryingAsyncClient] = Field(
32
+ default=RetryingAsyncClient, exclude=True, repr=False
33
+ )
34
+
35
+ _cached_token: Optional[Tuple[str, float]] = PrivateAttr(default=None)
36
+
37
+ def _token_endpoint(self) -> str:
38
+ return f"{self.issuer.rstrip('/')}/v1/token"
39
+
40
+ def _client_secret_value(self) -> Optional[str]:
41
+ return self.client_secret.get_secret_value() if self.client_secret else None
42
+
43
+ @staticmethod
44
+ def _load_private_key(jwk_payload: Mapping[str, Any], algorithm: str) -> Any:
45
+ serialized = json.dumps(jwk_payload)
46
+ if algorithm.upper().startswith("ES"):
47
+ return jwt.algorithms.ECAlgorithm.from_jwk(serialized)
48
+ if algorithm.upper().startswith("PS"):
49
+ return jwt.algorithms.RSAAlgorithm.from_jwk(serialized)
50
+ return jwt.algorithms.RSAAlgorithm.from_jwk(serialized)
51
+
52
+ def _client_assertion_body(self) -> Dict[str, str]:
53
+ if not self.private_key_jwk:
54
+ return {}
55
+ algorithm = self.private_key_jwk.get("alg", "RS256")
56
+ key = self._load_private_key(self.private_key_jwk, algorithm)
57
+ now = int(time.time())
58
+ payload = {
59
+ "iss": self.client_id,
60
+ "sub": self.client_id,
61
+ "aud": self._token_endpoint(),
62
+ "iat": now,
63
+ "exp": now + self.assertion_lifetime_seconds,
64
+ "jti": f"{self.client_id}-{now}",
65
+ }
66
+ headers: Dict[str, str] = {}
67
+ if kid := self.private_key_jwk.get("kid"):
68
+ headers["kid"] = kid
69
+ assertion = jwt.encode(
70
+ payload, key=key, algorithm=algorithm, headers=headers or None
71
+ )
72
+ return {
73
+ "client_id": self.client_id,
74
+ "client_assertion_type": ASSERTION_TYPE,
75
+ "client_assertion": assertion,
76
+ }
77
+
78
+ async def _fetch_token(self, scope: Optional[str]) -> Tuple[str, float]:
79
+ form = {"grant_type": "client_credentials"}
80
+ if scope:
81
+ form["scope"] = scope
82
+ body = self._client_assertion_body()
83
+ auth = None
84
+ if body:
85
+ payload = {**form, **body}
86
+ else:
87
+ secret = self._client_secret_value()
88
+ if not secret:
89
+ raise ValueError("client_secret or private_key_jwk must be provided")
90
+ auth = (self.client_id, secret)
91
+ payload = form
92
+ async with self.http_client_factory() as client:
93
+ response = await client.post_retry(
94
+ self._token_endpoint(),
95
+ data=payload,
96
+ auth=auth,
97
+ headers={"Accept": "application/json"},
98
+ )
99
+ response.raise_for_status()
100
+ data = response.json()
101
+ token = data.get("access_token")
102
+ if not token:
103
+ raise ValueError("access_token missing from Okta response")
104
+ expires_at = time.time() + int(data.get("expires_in", 3600))
105
+ return token, expires_at
106
+
107
+ async def access_token(self, scope: Optional[str] = None) -> str:
108
+ cached = self._cached_token
109
+ now = time.time()
110
+ if cached and now < cached[1] - self.cache_skew_seconds:
111
+ return cached[0]
112
+ token, expires_at = await self._fetch_token(scope)
113
+ self._cached_token = (token, expires_at)
114
+ return token
115
+
116
+
117
+ __all__ = ["OktaOAuth21AppClient"]
@@ -0,0 +1,31 @@
1
+ """Okta OAuth 2.1 Authorization Code login implementation."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Any, Mapping
6
+
7
+ from swarmauri_base.ComponentBase import ComponentBase
8
+ from swarmauri_base.auth_idp import OAuth21LoginBase
9
+
10
+ from .OktaOIDCLoginMixin import OktaOIDCLoginMixin
11
+
12
+
13
+ @ComponentBase.register_type(OAuth21LoginBase, "OktaOAuth21Login")
14
+ class OktaOAuth21Login(OktaOIDCLoginMixin, OAuth21LoginBase):
15
+ """Implement the Okta OAuth 2.1 Authorization Code flow with PKCE."""
16
+
17
+ async def auth_url(self) -> Mapping[str, str]:
18
+ payload = await self._auth_payload()
19
+ return {"url": payload["url"], "state": payload["state"]}
20
+
21
+ async def exchange_and_identity(self, code: str, state: str) -> Mapping[str, Any]:
22
+ tokens = await self._exchange_tokens(code, state)
23
+ metadata = await self._metadata()
24
+ claims = await self._decode_id_token(tokens, metadata)
25
+ return {
26
+ "issuer": "okta-oauth21",
27
+ "sub": claims["sub"],
28
+ "email": claims.get("email"),
29
+ "name": claims.get("name") or claims.get("preferred_username") or "Unknown",
30
+ "raw": {"tokens": tokens, "claims": claims},
31
+ }
@@ -0,0 +1,101 @@
1
+ """Shared helpers for Okta OAuth user login implementations."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Any, Callable, Mapping, Optional
6
+
7
+ from pydantic import ConfigDict, Field, SecretBytes, SecretStr
8
+
9
+ from swarmauri_base.auth_idp import (
10
+ RetryingAsyncClient,
11
+ make_pkce_pair,
12
+ sign_state,
13
+ verify_state,
14
+ )
15
+
16
+
17
+ class OktaOAuthLoginMixin:
18
+ """Reusable PKCE, discovery, and UserInfo helpers for Okta logins."""
19
+
20
+ model_config = ConfigDict(extra="forbid", arbitrary_types_allowed=True)
21
+
22
+ issuer: str
23
+ client_id: str
24
+ client_secret: SecretStr
25
+ redirect_uri: str
26
+ state_secret: SecretBytes
27
+ scope: str = Field(default="openid email profile")
28
+ http_client_factory: Callable[[], RetryingAsyncClient] = Field(
29
+ default=RetryingAsyncClient, exclude=True, repr=False
30
+ )
31
+ discovery_cache: Optional[Mapping[str, Any]] = Field(
32
+ default=None, exclude=True, repr=False
33
+ )
34
+
35
+ def _client_secret_value(self) -> str:
36
+ return self.client_secret.get_secret_value()
37
+
38
+ def _state_secret_value(self) -> bytes:
39
+ return self.state_secret.get_secret_value()
40
+
41
+ async def _metadata(self) -> Mapping[str, Any]:
42
+ if self.discovery_cache is None:
43
+ url = f"{self.issuer.rstrip('/')}/.well-known/openid-configuration"
44
+ async with self.http_client_factory() as client:
45
+ response = await client.get_retry(
46
+ url, headers={"Accept": "application/json"}
47
+ )
48
+ response.raise_for_status()
49
+ self.discovery_cache = response.json()
50
+ return self.discovery_cache
51
+
52
+ async def _auth_payload(self) -> Mapping[str, str]:
53
+ metadata = await self._metadata()
54
+ verifier, challenge = make_pkce_pair()
55
+ state = sign_state(self._state_secret_value(), {"verifier": verifier})
56
+ endpoint = metadata["authorization_endpoint"]
57
+ url = (
58
+ f"{endpoint}?response_type=code"
59
+ f"&client_id={self.client_id}&redirect_uri={self.redirect_uri}"
60
+ f"&scope={self.scope}&state={state}"
61
+ f"&code_challenge={challenge}&code_challenge_method=S256"
62
+ f"&prompt=consent"
63
+ )
64
+ return {"url": url, "state": state, "verifier": verifier}
65
+
66
+ async def _exchange_tokens(self, code: str, state: str) -> Mapping[str, Any]:
67
+ payload = verify_state(self._state_secret_value(), state)
68
+ metadata = await self._metadata()
69
+ form = {
70
+ "grant_type": "authorization_code",
71
+ "code": code,
72
+ "redirect_uri": self.redirect_uri,
73
+ "client_id": self.client_id,
74
+ "client_secret": self._client_secret_value(),
75
+ "code_verifier": payload["verifier"],
76
+ }
77
+ async with self.http_client_factory() as client:
78
+ response = await client.post_retry(
79
+ metadata["token_endpoint"],
80
+ data=form,
81
+ headers={"Accept": "application/json"},
82
+ )
83
+ response.raise_for_status()
84
+ return response.json()
85
+
86
+ async def _fetch_userinfo(self, access_token: str) -> Mapping[str, Any]:
87
+ metadata = await self._metadata()
88
+ endpoint = metadata.get("userinfo_endpoint")
89
+ if not endpoint:
90
+ return {}
91
+ headers = {
92
+ "Authorization": f"Bearer {access_token}",
93
+ "Accept": "application/json",
94
+ }
95
+ async with self.http_client_factory() as client:
96
+ response = await client.get_retry(endpoint, headers=headers)
97
+ response.raise_for_status()
98
+ return response.json()
99
+
100
+
101
+ __all__ = ["OktaOAuthLoginMixin"]
@@ -0,0 +1,85 @@
1
+ """Okta OIDC 1.0 client credentials app client implementation."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import time
6
+ from typing import Any, Callable, Mapping, Optional, Tuple
7
+
8
+ from pydantic import ConfigDict, Field, PrivateAttr, SecretStr
9
+
10
+ from swarmauri_base.ComponentBase import ComponentBase
11
+ from swarmauri_base.auth_idp import OIDC10AppClientBase, RetryingAsyncClient
12
+
13
+
14
+ @ComponentBase.register_type(OIDC10AppClientBase, "OktaOIDC10AppClient")
15
+ class OktaOIDC10AppClient(OIDC10AppClientBase):
16
+ """Request machine-to-machine tokens using Okta's OIDC discovery metadata."""
17
+
18
+ model_config = ConfigDict(extra="forbid", arbitrary_types_allowed=True)
19
+
20
+ issuer: str
21
+ client_id: str
22
+ client_secret: SecretStr
23
+ cache_skew_seconds: int = Field(default=30, ge=0)
24
+ discovery_cache_ttl_seconds: int = Field(default=3600, ge=0)
25
+ http_client_factory: Callable[[], RetryingAsyncClient] = Field(
26
+ default=RetryingAsyncClient, exclude=True, repr=False
27
+ )
28
+
29
+ _cached_token: Optional[Tuple[str, float]] = PrivateAttr(default=None)
30
+ _discovery_cache: Optional[Tuple[Mapping[str, Any], float]] = PrivateAttr(
31
+ default=None
32
+ )
33
+
34
+ def _client_secret_value(self) -> str:
35
+ return self.client_secret.get_secret_value()
36
+
37
+ async def _discovery(self) -> Mapping[str, Any]:
38
+ now = time.time()
39
+ cached = self._discovery_cache
40
+ if cached and now < cached[1]:
41
+ return cached[0]
42
+ url = f"{self.issuer.rstrip('/')}/.well-known/openid-configuration"
43
+ async with self.http_client_factory() as client:
44
+ response = await client.get_retry(
45
+ url,
46
+ headers={"Accept": "application/json"},
47
+ )
48
+ response.raise_for_status()
49
+ payload: Mapping[str, Any] = response.json()
50
+ if self.discovery_cache_ttl_seconds > 0:
51
+ self._discovery_cache = (payload, now + self.discovery_cache_ttl_seconds)
52
+ return payload
53
+
54
+ async def _fetch_token(self, scope: Optional[str]) -> Tuple[str, float]:
55
+ metadata = await self._discovery()
56
+ form = {"grant_type": "client_credentials"}
57
+ if scope:
58
+ form["scope"] = scope
59
+ auth = (self.client_id, self._client_secret_value())
60
+ async with self.http_client_factory() as client:
61
+ response = await client.post_retry(
62
+ metadata["token_endpoint"],
63
+ data=form,
64
+ auth=auth,
65
+ headers={"Accept": "application/json"},
66
+ )
67
+ response.raise_for_status()
68
+ payload = response.json()
69
+ token = payload.get("access_token")
70
+ if not token:
71
+ raise ValueError("access_token missing from Okta response")
72
+ expires_at = time.time() + int(payload.get("expires_in", 3600))
73
+ return token, expires_at
74
+
75
+ async def access_token(self, scope: Optional[str] = None) -> str:
76
+ cached = self._cached_token
77
+ now = time.time()
78
+ if cached and now < cached[1] - self.cache_skew_seconds:
79
+ return cached[0]
80
+ token, expires_at = await self._fetch_token(scope)
81
+ self._cached_token = (token, expires_at)
82
+ return token
83
+
84
+
85
+ __all__ = ["OktaOIDC10AppClient"]
@@ -0,0 +1,37 @@
1
+ """Okta OpenID Connect 1.0 Authorization Code login implementation."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Any, Mapping
6
+
7
+ from swarmauri_base.ComponentBase import ComponentBase
8
+ from swarmauri_base.auth_idp import OIDC10LoginBase
9
+
10
+ from .OktaOIDCLoginMixin import OktaOIDCLoginMixin
11
+
12
+
13
+ @ComponentBase.register_type(OIDC10LoginBase, "OktaOIDC10Login")
14
+ class OktaOIDC10Login(OktaOIDCLoginMixin, OIDC10LoginBase):
15
+ """Implement OIDC 1.0 Authorization Code with PKCE for Okta."""
16
+
17
+ async def auth_url(self) -> Mapping[str, str]:
18
+ payload = await self._auth_payload()
19
+ return {"url": payload["url"], "state": payload["state"]}
20
+
21
+ async def exchange(self, code: str, state: str) -> Mapping[str, Any]:
22
+ tokens = await self._exchange_tokens(code, state)
23
+ metadata = await self._metadata()
24
+ claims = await self._decode_id_token(tokens, metadata)
25
+ email = claims.get("email")
26
+ name = claims.get("name") or claims.get("preferred_username") or "Unknown"
27
+ if (not email or name == "Unknown") and metadata.get("userinfo_endpoint"):
28
+ profile = await self._fetch_userinfo(tokens["access_token"])
29
+ email = profile.get("email") or email
30
+ name = profile.get("name") or profile.get("given_name") or name
31
+ return {
32
+ "issuer": "okta-oidc",
33
+ "sub": claims["sub"],
34
+ "email": email,
35
+ "name": name,
36
+ "raw": {"tokens": tokens, "claims": claims},
37
+ }
@@ -0,0 +1,50 @@
1
+ """Shared helpers for Okta OIDC-based login implementations."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Any, Mapping
6
+
7
+ import jwt
8
+
9
+ from .OktaOAuthLoginMixin import OktaOAuthLoginMixin
10
+
11
+
12
+ class OktaOIDCLoginMixin(OktaOAuthLoginMixin):
13
+ """Augment the Okta OAuth mixin with ID token validation."""
14
+
15
+ async def _decode_id_token(
16
+ self,
17
+ tokens: Mapping[str, Any],
18
+ metadata: Mapping[str, Any],
19
+ ) -> Mapping[str, Any]:
20
+ id_token = tokens.get("id_token")
21
+ if not id_token:
22
+ raise ValueError("no id_token in response")
23
+ header = jwt.get_unverified_header(id_token)
24
+ kid = header.get("kid")
25
+ if not kid:
26
+ raise ValueError("missing kid in id_token header")
27
+ async with self.http_client_factory() as client:
28
+ response = await client.get_retry(
29
+ metadata["jwks_uri"], headers={"Accept": "application/json"}
30
+ )
31
+ response.raise_for_status()
32
+ jwks = response.json()
33
+ key_entry = next(
34
+ (entry for entry in jwks.get("keys", []) if entry.get("kid") == kid),
35
+ None,
36
+ )
37
+ if not key_entry:
38
+ raise ValueError("signing key not found")
39
+ algorithm = header.get("alg", "RS256")
40
+ signer = jwt.algorithms.RSAAlgorithm.from_jwk(key_entry)
41
+ return jwt.decode(
42
+ id_token,
43
+ signer,
44
+ algorithms=[algorithm],
45
+ audience=self.client_id,
46
+ issuer=self.issuer,
47
+ )
48
+
49
+
50
+ __all__ = ["OktaOIDCLoginMixin"]
@@ -0,0 +1,17 @@
1
+ """Okta identity provider implementations for Swarmauri."""
2
+
3
+ from .OktaOAuth20AppClient import OktaOAuth20AppClient
4
+ from .OktaOAuth20Login import OktaOAuth20Login
5
+ from .OktaOAuth21AppClient import OktaOAuth21AppClient
6
+ from .OktaOAuth21Login import OktaOAuth21Login
7
+ from .OktaOIDC10AppClient import OktaOIDC10AppClient
8
+ from .OktaOIDC10Login import OktaOIDC10Login
9
+
10
+ __all__ = [
11
+ "OktaOAuth20AppClient",
12
+ "OktaOAuth20Login",
13
+ "OktaOAuth21AppClient",
14
+ "OktaOAuth21Login",
15
+ "OktaOIDC10AppClient",
16
+ "OktaOIDC10Login",
17
+ ]