-
-
Notifications
You must be signed in to change notification settings - Fork 13
Migrate backend to auth0-python v5.0.0 #2576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
pylipp
merged 7 commits into
dependabot/pip/back/auth0-python-5.0.0
from
copilot/sub-pr-2568
Feb 10, 2026
Merged
Migrate backend to auth0-python v5.0.0 #2576
pylipp
merged 7 commits into
dependabot/pip/back/auth0-python-5.0.0
from
copilot/sub-pr-2568
Feb 10, 2026
+166
−104
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: pylipp <10617122+pylipp@users.noreply.github.com>
- Updated imports: Auth0 -> ManagementClient, Auth0Error location - Updated pagination to use SyncPager with .items and .response - Convert Pydantic models to dicts with model_dump() for backward compatibility - Updated test mocks to return MockPager objects Co-authored-by: pylipp <10617122+pylipp@users.noreply.github.com>
Co-authored-by: pylipp <10617122+pylipp@users.noreply.github.com>
- Simplified pagination logging to show page number correctly - Refactored MockItem to use dedicated class instead of lambda Co-authored-by: pylipp <10617122+pylipp@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update auth0-python dependency to version 5.0.0
Migrate backend to auth0-python v5.0.0
Feb 10, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dependabot/pip/back/auth0-python-5.0.0 #2576 +/- ##
=======================================================================
Coverage 77.99% 77.99%
=======================================================================
Files 281 281
Lines 20098 20098
Branches 2029 2029
=======================================================================
Hits 15676 15676
Misses 4376 4376
Partials 46 46
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- still waiting for one issue with users.create and default fields to be resolved in 5.1.0
c6ffc4b
into
dependabot/pip/back/auth0-python-5.0.0
8 of 10 checks passed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Auth0-python v5.0.0 introduces breaking changes in the Management API: responses are now Pydantic models instead of dicts, pagination uses a new
SyncPagerclass, and the exception module location changed.Changes
Management API Client
Auth0→ManagementClientwith updated initialization syntaxAuth0Errorimport moved fromauth0toauth0.authentication.exceptionsPagination Refactor
response['users'],response['total']) withSyncPagerAPIpager.iter_pages()for iteration,pager.itemsfor data,pager.response.totalfor countsmodel_dump()to convert Pydantic models to dicts for backward compatibility with existing codeTest Infrastructure
MockItemandMockPagerclasses to mock v5 API structureExample
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.