Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.2.2
- Extend the fallback cache TTL to 5 minutes.

# 1.2.1
- Add autodeploy to PyPI
- Remove Support for EOL Python 3.5
Expand Down
2 changes: 1 addition & 1 deletion mauth_client/key_holder.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from mauth_client.exceptions import InauthenticError

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


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mauth-client"
version = "1.2.1"
version = "1.2.2"
description = "MAuth Client for Python"
repository = "https://github.com/mdsol/mauth-client-python"
authors = ["Medidata Solutions <support@mdsol.com>"]
Expand Down
2 changes: 1 addition & 1 deletion tests/key_holder_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_get_request(self):
requests.get(MAUTH_PATH, text=json.dumps(MAUTH_RESPONSE))
self.assertEqual(KeyHolder.get_public_key(APP_UUID), PUBLIC_KEY)
self.assertEqual(KeyHolder._CACHE.maxsize, 128)
self.assertEqual(KeyHolder._CACHE.ttl, 60)
self.assertEqual(KeyHolder._CACHE.ttl, 300)

def test_get_request_respect_cache_header(self):
KeyHolder._CACHE = None
Expand Down