tokusumi / fastapi-cloudauth

Simple integration between FastAPI and cloud authentication services (AWS Cognito, Auth0, Firebase Authentication).
MIT License
323 stars 35 forks source link

Store Firebase JWKS expiry and refresh keys when they expire #61

Closed tokusumi closed 2 years ago

tokusumi commented 2 years ago

Refactoring and add tests for PR(#60) to fix issue(#59). (Create new PR to run CI with environment variables in main repository)

Adds:

Breaking changes:

codecov[bot] commented 2 years ago

Codecov Report

Merging #61 (e22ccc1) into master (7b3bd6e) will decrease coverage by 0.30%. The diff coverage is 97.67%.

Impacted file tree graph

@@             Coverage Diff             @@
##            master      #61      +/-   ##
===========================================
- Coverage   100.00%   99.69%   -0.31%     
===========================================
  Files           14       14              
  Lines         1203     1316     +113     
===========================================
+ Hits          1203     1312     +109     
- Misses           0        4       +4     
Flag Coverage Δ
unittests 99.69% <97.67%> (-0.31%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
fastapi_cloudauth/firebase.py 93.47% <84.21%> (-6.53%) :arrow_down:
fastapi_cloudauth/verification.py 99.47% <98.03%> (-0.53%) :arrow_down:
fastapi_cloudauth/auth0.py 100.00% <100.00%> (ø)
fastapi_cloudauth/base.py 100.00% <100.00%> (ø)
fastapi_cloudauth/cognito.py 100.00% <100.00%> (ø)
tests/test_base.py 100.00% <100.00%> (ø)
tests/test_verification.py 100.00% <100.00%> (ø)

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 7b3bd6e...e22ccc1. Read the comment docs.