From 71b5301cb8c4768a9f439bde20750d448062944c Mon Sep 17 00:00:00 2001 From: Martin Strobel Date: Tue, 16 Jul 2019 16:59:14 -0700 Subject: [PATCH 1/3] Removing `FileTokenCache.add` overload. (#27) Fixes #26 --- msal_extensions/token_cache.py | 12 ------------ setup.py | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/msal_extensions/token_cache.py b/msal_extensions/token_cache.py index fce54b1..4d419d2 100644 --- a/msal_extensions/token_cache.py +++ b/msal_extensions/token_cache.py @@ -77,18 +77,6 @@ def _read(self): with open(self._cache_location, 'r') as handle: return handle.read() - def add(self, event, **kwargs): - with CrossPlatLock(self._lock_location): - if self._needs_refresh(): - try: - self.deserialize(self._read()) - except IOError as exp: - if exp.errno != errno.ENOENT: - raise - super(FileTokenCache, self).add(event, **kwargs) # pylint: disable=duplicate-code - self._write(self.serialize()) - self._last_sync = os.path.getmtime(self._cache_location) - def modify(self, credential_type, old_entry, new_key_value_pairs=None): with CrossPlatLock(self._lock_location): if self._needs_refresh(): diff --git a/setup.py b/setup.py index ce287c8..8424dae 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ 'Development Status :: 2 - Pre-Alpha', ], install_requires=[ - 'msal~=0.4', + 'msal~=0.4.1', 'portalocker~=1.0', ], tests_require=['pytest'], From 28a1e9d5366cda4580c60aaa662cc4f09d3f8bea Mon Sep 17 00:00:00 2001 From: Martin Strobel Date: Wed, 17 Jul 2019 12:25:04 -0700 Subject: [PATCH 2/3] Mark msal 0.5.x as compatible with the extension. (#28) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8424dae..326097a 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ 'Development Status :: 2 - Pre-Alpha', ], install_requires=[ - 'msal~=0.4.1', + 'msal>=0.4.1,<0.6.0', 'portalocker~=1.0', ], tests_require=['pytest'], From 1876658d89152a3b6b8322c95bafaa3f5f5b1677 Mon Sep 17 00:00:00 2001 From: Ray Luo Date: Wed, 17 Jul 2019 12:51:46 -0700 Subject: [PATCH 3/3] MSAL Python Extensions 0.1.1 Bumping version number --- msal_extensions/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msal_extensions/__init__.py b/msal_extensions/__init__.py index 6591075..8d24dd0 100644 --- a/msal_extensions/__init__.py +++ b/msal_extensions/__init__.py @@ -1,5 +1,5 @@ """Provides auxiliary functionality to the `msal` package.""" -__version__ = "0.1.0" +__version__ = "0.1.1" import sys