Commit f966475
authored
Merge v5 branch into master – Auth0 Python SDK v5.0.0 (#768)
This pull request merges the `v5` branch into `master`, introducing
**version 5.0.0** of the Auth0 Python SDK. This marks a **major,
breaking rewrite** of the SDK, fully generated from Auth0's OpenAPI
specifications using Fern.
The Management API code is now **auto-generated**, featuring a new
hierarchical package structure, improved type safety with Pydantic
models, and updated usage patterns. The Authentication API remains
manually maintained and is **not affected** by these changes.
Additionally, documentation, workflows, and contribution guidelines have
been updated to align with the new structure.
---
## Major Breaking Changes and Improvements
### SDK Rewrite and Breaking Changes
- Complete rewrite of the **Management SDK**, generated from OpenAPI
specs using Fern, introducing: - Hierarchical package structure with
improved organization
- Strongly typed interfaces using Pydantic models
- Automatic token management with client credentials
- Improved pagination with `SyncPager` and `AsyncPager`
- Enhanced error handling with structured exceptions
- All Management API usage patterns have changed, including **client
initialization** and **method signatures**. Refer to the [v5 Migration
Guide](v5_MIGRATION_GUIDE.md) for detailed upgrade steps.
- **Package structure** has changed from dictionary-based responses to
Pydantic models. All imports and response handling must be updated.
- Only the **Authentication API** is manually maintained. Contribution
and code generation instructions have been updated accordingly.
### Documentation and Examples
- `README.md` and badges updated for v5
- Installation instructions revised; new usage examples provided for
both Authentication and Management APIs
- Clarified Python version requirement: **Python 3.8+** (Python 3.7
support dropped)
- Contribution guidelines updated to reflect the new code generation
process and testing instructions
### Build, Linting, and Workflows
- CI workflows updated to use the `master` branch (will be finalized in
this PR)
- v5-specific workflow files (`v5-ci.yml`, `v5-publish.yml`) to be
removed or consolidated
- Linting configuration adjusted for the new structure
- Poetry and dependency management updated
### Changelog
- Added detailed changelog entries describing the rewrite, breaking
changes, migration steps, and beta release notice
---
Please review the [v5 Migration Guide](v5_MIGRATION_GUIDE.md) and
updated documentation to transition your codebase to the new SDK
structure.
---
**Note:** The `v4` branch has been preserved at the pre-v5 state for
reference and potential maintenance releases.
---------
Signed-off-by: Snehil Kishore <snehil.kishore@okta.com>1 parent 1233acd commit f966475
2,438 files changed
Lines changed: 223333 additions & 12557 deletions
File tree
- .fern
- .github/workflows
- auth0
- authentication
- management
- test_async
- test
- authentication
- management
- docs
- source
- examples
- flask-api
- flask-webapp
- webapi2
- src/auth0
- authentication
- management
- actions
- executions
- triggers
- bindings
- versions
- anomaly
- blocks
- attack_protection
- bot_detection
- breached_password_detection
- brute_force_protection
- types
- 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
- types
- flows
- executions
- vault
- connections
- forms
- guardian
- enrollments
- factors
- duo
- settings
- phone
- push_notification
- sms
- policies
- hooks
- secrets
- jobs
- errors
- types
- users_exports
- users_imports
- verification_email
- keys
- custom_signing
- encryption
- signing
- log_streams
- logs
- network_acls
- organizations
- client_grants
- 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
- types
- tickets
- token_exchange_profiles
- types
- user_attribute_profiles
- user_blocks
- user_grants
- users
- authentication_methods
- authenticators
- connected_accounts
- enrollments
- federated_connections_tokensets
- identities
- logs
- multifactor
- organizations
- permissions
- refresh_token
- risk_assessments
- roles
- sessions
- verifiable_credentials
- verification
- templates
- tests
- authentication
- custom
- management
- utils
- assets/models
- wire
- wiremock
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| 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 | + | |
| 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 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
| |||
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
54 | | - | |
| 59 | + | |
55 | 60 | | |
56 | 61 | | |
57 | | - | |
58 | | - | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
62 | | - | |
| 65 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 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 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
3 | 42 | | |
4 | 43 | | |
5 | 44 | | |
| |||
This file was deleted.
0 commit comments