labd / django-cognito-jwt

An Authentication backend for Django Rest Framework for AWS Cognito JWT tokens
MIT License
177 stars 59 forks source link

Add setting that enables caching the Cognito public keys using Django CACHES #12

Closed aramboi closed 5 years ago

aramboi commented 5 years ago

Falls back on the current behaviour if the setting COGNITO_PUBLIC_KEYS_CACHING_ENABLED is not explicitly set to True in the Django settings file of the project.

Support for custom cache timeout by setting the value of COGNITO_PUBLIC_KEYS_CACHING_TIMEOUT in Django settings.

codecov[bot] commented 5 years ago

Codecov Report

Merging #12 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #12   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           3      3           
  Lines          75     84    +9     
  Branches        7      9    +2     
=====================================
+ Hits           75     84    +9
Impacted Files Coverage Δ
src/django_cognito_jwt/validator.py 100% <100%> (ø) :arrow_up:
src/django_cognito_jwt/__init__.py 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0c15385...dd40252. Read the comment docs.

mikedebock commented 5 years ago

Thank you for your contribution, Pypi release will follow soon!