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
feat: Added support for Authenticated Datafiles (#271)
* add enum constants for auth datafile
* create AuthDatafileConfigManager which extends PollingConfigManager and create constructor
* override fetch_datafile method in AuthDatafilePollingConfigManager to add access token to authorization header
* add import statement for AuthDatafilePollingConfigManager and add conditional for it based on if access token is provided
* add setter method for access_token
* add 3 tests for AuthDatafilePollingConfigManager
* modify expected_datafile_url to use presets in enums for consistency
* add test for optimizely.py for condition where AuthDatafilePollingConfigManager will be used
* modify access_token input check to disallow an empty or None access_token
* style: fix linting issues
* style: remove whitespace for linting
* style: rewrite test comment
* refactor: reorder constructor argument for access_token
* refactor: change args to **kwargs and add a url_template setter method
* docs: add method comments
* refactor: convert to *args and **kwargs and remove url setter method
* docs: add constructor comment
* refactor: make requested changes
Co-authored-by: Pawel Szczodruch <44238966+pawels-optimizely@users.noreply.github.com>
0 commit comments