-
Notifications
You must be signed in to change notification settings - Fork 9
Feat: Added base_url to DescopeClient
#691
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds the ability to override the base URL in the Python SDK by introducing a base_url parameter to the DescopeClient constructor. This enables users to connect to different Descope API environments beyond the default.
Key Changes:
- Added optional
base_urlparameter toDescopeClient.__init__() - The parameter is passed to the auth HTTP client initialization
- Added test coverage to verify the base URL is correctly propagated to both auth and management HTTP clients
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| descope/descope_client.py | Added base_url parameter to constructor and passed it to auth HTTP client |
| tests/test_descope_client.py | Added test to verify base URL setting in both auth and management clients |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Coverage reportThe coverage rate went from None of the new lines are part of the tested code. Therefore, there is no coverage data about them. |
|
Can we test if |
Related Issues
Fixes https://github.com/descope/etc/issues/12954
Related PRs
Description
Added the ability to override the base URL in the Python SDK from
DescopeClientas a parameter.Must