Skip to content

Commit 82bb7ce

Browse files
Merge pull request #30 from mdsol/develop
master ← develop
2 parents c4291b6 + 0711017 commit 82bb7ce

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 1.2.2
2+
- Extend the fallback cache TTL to 5 minutes.
3+
14
# 1.2.1
25
- Add autodeploy to PyPI
36
- Remove Support for EOL Python 3.5

mauth_client/key_holder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from mauth_client.exceptions import InauthenticError
88

99
CACHE_MAXSIZE = 128
10-
CACHE_TTL = 60
10+
CACHE_TTL = 300
1111
MAX_AGE_REGEX = re.compile(r"max-age=(\d+)")
1212

1313

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "mauth-client"
3-
version = "1.2.1"
3+
version = "1.2.2"
44
description = "MAuth Client for Python"
55
repository = "https://github.com/mdsol/mauth-client-python"
66
authors = ["Medidata Solutions <[email protected]>"]

tests/key_holder_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_get_request(self):
4646
requests.get(MAUTH_PATH, text=json.dumps(MAUTH_RESPONSE))
4747
self.assertEqual(KeyHolder.get_public_key(APP_UUID), PUBLIC_KEY)
4848
self.assertEqual(KeyHolder._CACHE.maxsize, 128)
49-
self.assertEqual(KeyHolder._CACHE.ttl, 60)
49+
self.assertEqual(KeyHolder._CACHE.ttl, 300)
5050

5151
def test_get_request_respect_cache_header(self):
5252
KeyHolder._CACHE = None

0 commit comments

Comments
 (0)