Commit dccf7ae
chore: Add events module, async token support, and connection retry resilience (#835)
### Changes
This update adds new management API capabilities, improves HTTP client
resilience, and enhances async client flexibility. 976 files changed
across the management SDK, types, and wire tests.
**New events management module**
- Added `events` client with sync and async support
(`src/auth0/management/events/`)
- New wire tests for the events endpoint
**HTTP client retry improvements**
- Added `_retry_timeout_from_retries()` for connection-level retry
backoff when no response is available
- HTTP client now retries on `ConnectError` and `RemoteProtocolError`
with exponential backoff
- Configurable `base_max_retries` parameter on both sync and async HTTP
clients
- Fixed missing `data` and `force_multipart` parameters being forwarded
on retry
**Async client enhancements**
- New `async_token` parameter on `AsyncAuth0` for async bearer token
acquisition (e.g., refreshing tokens via an async HTTP client)
- New `_make_default_async_client` helper for automatic aiohttp
detection
- Added `_default_clients.py` with `DefaultAioHttpClient` and
`DefaultAsyncHttpxClient` classes
**Type model updates**
- 361 new type files for branding, clients, connections, and other
management resources
- 607 existing files modified across management clients, types, and core
modules
**Custom wiring**
- Restored custom wiring in `management/__init__.py` for
`ManagementClient`, `AsyncManagementClient`, `CustomDomainHeader`,
`TokenProvider`, and `AsyncTokenProvider`
### References
- Fern generator: `fernapi/fern-python-sdk: 5.8.4`
### Testing
- [x] This change adds unit test coverage
- [ ] This change adds integration test coverage
- [x] This change has been tested on the latest version of the
platform/language or why not
Wire tests updated across 108 existing test files, and 2 new test files
added (events module + aiohttp autodetect).
### Checklist
- [x] I have read the [Auth0 general contribution
guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
- [x] I have read the [Auth0 Code of
Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)
- [x] All existing and new tests complete without errors
---------
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
Co-authored-by: Kunal Dawar <kunal.dawar@okta.com>
Co-authored-by: Snehil Kishore <snehil.kishore@okta.com>1 parent e8d99e5 commit dccf7ae
977 files changed
Lines changed: 55430 additions & 5382 deletions
File tree
- .fern
- src/auth0/management
- actions
- executions
- modules
- versions
- triggers
- bindings
- versions
- anomaly/blocks
- attack_protection
- bot_detection
- breached_password_detection
- brute_force_protection
- captcha
- suspicious_ip_throttling
- branding
- phone
- providers
- templates
- templates
- themes
- client_grants
- organizations
- clients
- connections
- credentials
- connection_profiles
- connections
- clients
- directory_provisioning
- synchronizations
- keys
- scim_configuration
- tokens
- users
- core
- http_sse
- custom_domains
- device_credentials
- email_templates
- emails/provider
- errors
- event_streams
- deliveries
- redeliveries
- events
- flows
- executions
- vault/connections
- forms
- groups
- members
- guardian
- enrollments
- factors
- duo/settings
- phone
- push_notification
- sms
- policies
- hooks
- secrets
- jobs
- errors
- users_exports
- users_imports
- verification_email
- keys
- custom_signing
- encryption
- signing
- log_streams
- logs
- network_acls
- organizations
- client_grants
- connections
- discovery_domains
- enabled_connections
- invitations
- members
- roles
- prompts
- custom_text
- partials
- rendering
- refresh_tokens
- resource_servers
- risk_assessments/settings
- new_device
- roles
- permissions
- users
- rules_configs
- rules
- self_service_profiles
- custom_text
- sso_ticket
- sessions
- stats
- supplemental_signals
- tenants/settings
- tickets
- token_exchange_profiles
- types
- user_attribute_profiles
- user_blocks
- user_grants
- users
- authentication_methods
- authenticators
- connected_accounts
- enrollments
- federated_connections_tokensets
- groups
- identities
- logs
- multifactor
- organizations
- permissions
- refresh_token
- risk_assessments
- roles
- sessions
- verifiable_credentials/verification/templates
- tests
- utils
- wire
- wiremock
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | | - | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
116 | 122 | | |
117 | 123 | | |
118 | 124 | | |
| |||
140 | 146 | | |
141 | 147 | | |
142 | 148 | | |
143 | | - | |
| 149 | + | |
144 | 150 | | |
145 | 151 | | |
146 | 152 | | |
| |||
212 | 218 | | |
213 | 219 | | |
214 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
215 | 225 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
141 | 147 | | |
142 | 148 | | |
143 | 149 | | |
| |||
271 | 277 | | |
272 | 278 | | |
273 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
274 | 284 | | |
275 | 285 | | |
276 | 286 | | |
| |||
293 | 303 | | |
294 | 304 | | |
295 | 305 | | |
296 | | - | |
| 306 | + | |
297 | 307 | | |
298 | 308 | | |
299 | 309 | | |
| |||
365 | 375 | | |
366 | 376 | | |
367 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
368 | 382 | | |
369 | 383 | | |
370 | 384 | | |
| |||
384 | 398 | | |
385 | 399 | | |
386 | 400 | | |
387 | | - | |
| 401 | + | |
388 | 402 | | |
389 | 403 | | |
390 | 404 | | |
| |||
460 | 474 | | |
461 | 475 | | |
462 | 476 | | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
463 | 481 | | |
464 | 482 | | |
465 | 483 | | |
| |||
497 | 515 | | |
498 | 516 | | |
499 | 517 | | |
500 | | - | |
| 518 | + | |
501 | 519 | | |
502 | 520 | | |
503 | 521 | | |
| |||
593 | 611 | | |
594 | 612 | | |
595 | 613 | | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
596 | 618 | | |
597 | 619 | | |
598 | 620 | | |
| |||
628 | 650 | | |
629 | 651 | | |
630 | 652 | | |
631 | | - | |
| 653 | + | |
632 | 654 | | |
633 | 655 | | |
634 | 656 | | |
| |||
712 | 734 | | |
713 | 735 | | |
714 | 736 | | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
715 | 741 | | |
716 | 742 | | |
717 | 743 | | |
| |||
737 | 763 | | |
738 | 764 | | |
739 | 765 | | |
740 | | - | |
| 766 | + | |
741 | 767 | | |
742 | 768 | | |
743 | 769 | | |
| |||
827 | 853 | | |
828 | 854 | | |
829 | 855 | | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
830 | 860 | | |
831 | 861 | | |
832 | 862 | | |
| |||
938 | 968 | | |
939 | 969 | | |
940 | 970 | | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
941 | 975 | | |
942 | 976 | | |
943 | 977 | | |
| |||
1071 | 1105 | | |
1072 | 1106 | | |
1073 | 1107 | | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
1074 | 1112 | | |
1075 | 1113 | | |
1076 | 1114 | | |
| |||
1093 | 1131 | | |
1094 | 1132 | | |
1095 | 1133 | | |
1096 | | - | |
| 1134 | + | |
1097 | 1135 | | |
1098 | 1136 | | |
1099 | 1137 | | |
| |||
1165 | 1203 | | |
1166 | 1204 | | |
1167 | 1205 | | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
1168 | 1210 | | |
1169 | 1211 | | |
1170 | 1212 | | |
| |||
1186 | 1228 | | |
1187 | 1229 | | |
1188 | 1230 | | |
1189 | | - | |
| 1231 | + | |
1190 | 1232 | | |
1191 | 1233 | | |
1192 | 1234 | | |
| |||
1262 | 1304 | | |
1263 | 1305 | | |
1264 | 1306 | | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
1265 | 1311 | | |
1266 | 1312 | | |
1267 | 1313 | | |
| |||
1299 | 1345 | | |
1300 | 1346 | | |
1301 | 1347 | | |
1302 | | - | |
| 1348 | + | |
1303 | 1349 | | |
1304 | 1350 | | |
1305 | 1351 | | |
| |||
1395 | 1441 | | |
1396 | 1442 | | |
1397 | 1443 | | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
1398 | 1448 | | |
1399 | 1449 | | |
1400 | 1450 | | |
| |||
1430 | 1480 | | |
1431 | 1481 | | |
1432 | 1482 | | |
1433 | | - | |
| 1483 | + | |
1434 | 1484 | | |
1435 | 1485 | | |
1436 | 1486 | | |
| |||
1517 | 1567 | | |
1518 | 1568 | | |
1519 | 1569 | | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
1520 | 1574 | | |
1521 | 1575 | | |
1522 | 1576 | | |
| |||
1542 | 1596 | | |
1543 | 1597 | | |
1544 | 1598 | | |
1545 | | - | |
| 1599 | + | |
1546 | 1600 | | |
1547 | 1601 | | |
1548 | 1602 | | |
| |||
1632 | 1686 | | |
1633 | 1687 | | |
1634 | 1688 | | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
1635 | 1693 | | |
0 commit comments