You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note: This post discusses an issue in a previous version of FalconPy. This issue is not present in the most recent versions of FalconPy, or the Uber Class. If you are not using version 0.4.0 - 0.5.5, or if you are using the Uber Class, you can safely ignore this discussion post.
Hi Everyone!
A bug was identified in August that impacted versions 0.4.0 - 0.5.5 regarding specifying environment configuration values for Service Classes. (Full bug detail below.) We've had a few developers run into this issue in scenarios where upgrading to the latest FalconPy version is more problematic. This discussion post is intended to provide documentation for a programmatic workaround for this issue.
When you instantiate a Service Class, a copy of the OAuth2 object is created as an attribute of the newly created object. Our bug improperly sets configuration values in _service_class.py which do not get propagated to this child object. We can work around this issue by creating an instance of the authentication class, and then using it to authenticate to each Service Class we want to use. (Object Authentication)
Not working in version 0.4 - 0.5.5
Trying to pass a custom base URL to a service class in this old version fails.
This solution will work in versions 0.4 - 0.5.5 as the customization values are set on the authentication object and then passed to subsequent Service Class.
This solution also applies to the proxy, ssl_verify and timeout keywords used when creating an instance of a Service Class.
If you have any questions regarding this workaround, please post a reply to this discussion or open an issue.
Original bug detail
Describe the bug
The base class of all service classes, _service_class.py does not respect values passed for the BASE_URL, PROXY or SSL_VERIFY attributes when creating an instance of the auth_object for credential authentication.
To Reproduce
Create an instance of any service class, and change it's base_url to US-2 or disable SSL verification with ssl_verify=False.
Expected behavior
The service class is instantiated with an auth_object that respects the passed attribute values.
Environment (please complete the following information):
bug 🐛Something isn't workingdocumentation 📖Improvements or additions to documentationresolved ✔️This issue has been resolvedauthenticationIssues or questions regarding authenticationSDK usageGeneral SDK usage issues and questions
1 participant
Converted from issue
This discussion was converted from issue #242 on October 19, 2021 01:06.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi Everyone!
A bug was identified in August that impacted versions 0.4.0 - 0.5.5 regarding specifying environment configuration values for Service Classes. (Full bug detail below.) We've had a few developers run into this issue in scenarios where upgrading to the latest FalconPy version is more problematic. This discussion post is intended to provide documentation for a programmatic workaround for this issue.
Workaround overview
When you instantiate a Service Class, a copy of the OAuth2 object is created as an attribute of the newly created object. Our bug improperly sets configuration values in
_service_class.py
which do not get propagated to this child object. We can work around this issue by creating an instance of the authentication class, and then using it to authenticate to each Service Class we want to use. (Object Authentication)Not working in version 0.4 - 0.5.5
Trying to pass a custom base URL to a service class in this old version fails.
Resolution
This solution will work in versions 0.4 - 0.5.5 as the customization values are set on the authentication object and then passed to subsequent Service Class.
This solution also applies to the
proxy
,ssl_verify
andtimeout
keywords used when creating an instance of a Service Class.If you have any questions regarding this workaround, please post a reply to this discussion or open an issue.
Original bug detail
Describe the bug
The base class of all service classes, _service_class.py does not respect values passed for the BASE_URL, PROXY or SSL_VERIFY attributes when creating an instance of the auth_object for credential authentication.
To Reproduce
Create an instance of any service class, and change it's base_url to US-2 or disable SSL verification with ssl_verify=False.
Expected behavior
The service class is instantiated with an auth_object that respects the passed attribute values.
Environment (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions