Commit e506d73
feat+fix: Pagination fix, SDK logging, OAuth1/DPoP types (#785)
## Summary
This Fern regeneration includes several significant changes across 61
files:
### Bug Fix: Pagination (Fixes #783)
- Fixed incorrect page advancement in **64 paginated endpoints** across
all `raw_client.py` files
- **Before (broken):** `page = page + len(_items or [])` — skipped pages
when `per_page > 1`
- **After (fixed):** `page = page + 1` - correctly advances one page at
a time
### New Feature: SDK Logging Infrastructure
- Added configurable logging via new `logging` parameter on the `Auth0`
client
- New `core/logging.py` module with `ConsoleLogger`, `Logger`,
`LogConfig`, and `ILogger` protocol
- Supports log levels: `debug`, `info`, `warn`, `error` with a `silent`
mode (default)
- HTTP request/response logging at debug level with method, URL, status
code
- Sensitive header redaction (`Authorization`, `Cookie`, `X-Api-Key`,
etc.) in log output
- Custom logger support via `ILogger` protocol
### New Types: OAuth1 & DPoP Connection Support
- 10 new connection type files for OAuth1 connections
(`connection_access_token_url_oauth1`, `connection_client_id_oauth1`,
`connection_scripts_oauth1`, etc.)
- DPoP signing algorithm types (`connection_dpop_signing_alg_enum`,
`connection_dpop_signing_alg_values_supported`)
- OIDC metadata types (`connection_options_oidc_metadata`,
`connection_options_common_oidc`)
- New `client_token_exchange_type_enum` and
`resource_server_proof_of_possession_required_for_enum`
### Other Changes
- Self-service profiles: updated response types (`create`, `get`,
`update`) and `self_service_profile` model
- Removed `core/custom_pagination.py` (replaced by standard pagination)
- Updated `reference.md` and test configuration (`conftest.py`)
### Manual Fixes (on top of Fern regeneration)
- Fixed `client_wrapper.py` to accept and forward the `logging`
parameter to `HttpClient`/`AsyncHttpClient` (was missing, causing
`TypeError` at runtime)
- Added `ManagementClient` and `AsyncManagementClient` to
`TYPE_CHECKING` and `__all__` exports in `__init__.py` (Fixes #793)
## Breaking Changes
- `custom_pagination.py` has been removed — any code importing from it
will need to update
## Test Plan
- [x] Pagination: Created 5 roles, paginated with `per_page=2`, verified
3 pages returned with all 5 roles
- [x] Logging: Verified debug logging captures HTTP method/URL/status,
header redaction works, level filtering suppresses lower levels, silent
mode produces zero output
- [x] Existing tests (auth, management, Issue #778) continue to pass
---------
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
Co-authored-by: Snehil Kishore <snehil.kishore@okta.com>1 parent 2f4906d commit e506d73
File tree
63 files changed
+571
-344
lines changed- src/auth0/management
- actions
- modules
- versions
- triggers/bindings
- versions
- clients
- core
- device_credentials
- flows
- vault/connections
- forms
- hooks
- keys/encryption
- logs
- network_acls
- organizations
- client_grants
- enabled_connections
- invitations
- members/roles
- prompts/rendering
- resource_servers
- roles
- permissions
- rules
- self_service_profiles
- types
- user_grants
- users
- authentication_methods
- logs
- organizations
- permissions
- roles
- tests
- wire
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
63 files changed
+571
-344
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2344 | 2344 | | |
2345 | 2345 | | |
2346 | 2346 | | |
2347 | | - | |
| 2347 | + | |
2348 | 2348 | | |
2349 | 2349 | | |
2350 | 2350 | | |
| |||
11969 | 11969 | | |
11970 | 11970 | | |
11971 | 11971 | | |
11972 | | - | |
| 11972 | + | |
11973 | 11973 | | |
11974 | 11974 | | |
11975 | 11975 | | |
| |||
12227 | 12227 | | |
12228 | 12228 | | |
12229 | 12229 | | |
12230 | | - | |
| 12230 | + | |
12231 | 12231 | | |
12232 | 12232 | | |
12233 | 12233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1215 | 1215 | | |
1216 | 1216 | | |
1217 | 1217 | | |
| 1218 | + | |
1218 | 1219 | | |
1219 | 1220 | | |
1220 | 1221 | | |
| |||
3340 | 3341 | | |
3341 | 3342 | | |
3342 | 3343 | | |
| 3344 | + | |
| 3345 | + | |
3343 | 3346 | | |
3344 | 3347 | | |
3345 | 3348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
652 | | - | |
| 652 | + | |
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
888 | | - | |
| 888 | + | |
889 | 889 | | |
890 | 890 | | |
891 | 891 | | |
| |||
1453 | 1453 | | |
1454 | 1454 | | |
1455 | 1455 | | |
1456 | | - | |
| 1456 | + | |
1457 | 1457 | | |
1458 | 1458 | | |
1459 | 1459 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
| 412 | + | |
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
890 | | - | |
| 890 | + | |
891 | 891 | | |
892 | 892 | | |
893 | 893 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
399 | | - | |
| 399 | + | |
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
| |||
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| 115 | + | |
111 | 116 | | |
112 | 117 | | |
113 | 118 | | |
| |||
125 | 130 | | |
126 | 131 | | |
127 | 132 | | |
| 133 | + | |
128 | 134 | | |
129 | 135 | | |
130 | 136 | | |
| |||
549 | 555 | | |
550 | 556 | | |
551 | 557 | | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
552 | 561 | | |
553 | 562 | | |
554 | 563 | | |
| |||
569 | 578 | | |
570 | 579 | | |
571 | 580 | | |
| 581 | + | |
572 | 582 | | |
573 | 583 | | |
574 | 584 | | |
| |||
586 | 596 | | |
587 | 597 | | |
588 | 598 | | |
| 599 | + | |
589 | 600 | | |
590 | 601 | | |
591 | 602 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
699 | | - | |
| 699 | + | |
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
| |||
1589 | 1589 | | |
1590 | 1590 | | |
1591 | 1591 | | |
1592 | | - | |
| 1592 | + | |
1593 | 1593 | | |
1594 | 1594 | | |
1595 | 1595 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
952 | | - | |
| 952 | + | |
953 | 953 | | |
954 | 954 | | |
955 | 955 | | |
| |||
1447 | 1447 | | |
1448 | 1448 | | |
1449 | 1449 | | |
1450 | | - | |
| 1450 | + | |
1451 | 1451 | | |
1452 | 1452 | | |
1453 | 1453 | | |
| |||
2214 | 2214 | | |
2215 | 2215 | | |
2216 | 2216 | | |
2217 | | - | |
| 2217 | + | |
2218 | 2218 | | |
2219 | 2219 | | |
2220 | 2220 | | |
| |||
0 commit comments