Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed simple jwt env usage and settings #318

Merged
merged 1 commit into from
Jan 10, 2024
Merged

Conversation

SanttuA
Copy link
Collaborator

@SanttuA SanttuA commented Jan 10, 2024

Changes:

  • switched jwt expiration setting from EXPIRATION_DELTA to ACCESS_TOKEN_LIFETIME
  • changed env JWT_LIFETIME default from 3600 to 900 seconds
  • removed jwt AUTH_HEADER_PREFIX and updated AUTH_HEADER_TYPES to use env JWT_AUTH_HEADER_PREFIX
  • removed PAYLOAD_HANDLER which is not used by this package

Changes:
- switched jwt expiration setting from `EXPIRATION_DELTA` to `ACCESS_TOKEN_LIFETIME`
- changed env `JWT_LIFETIME` default from 3600 to 900 seconds
- removed jwt `AUTH_HEADER_PREFIX` and updated `AUTH_HEADER_TYPES` to use env `JWT_AUTH_HEADER_PREFIX`
- removed `PAYLOAD_HANDLER` which is not used by this package
@SanttuA SanttuA requested a review from ezkat January 10, 2024 06:18
Copy link

codecov bot commented Jan 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cce7ef3) 76.90% compared to head (fba1392) 76.89%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #318      +/-   ##
===========================================
- Coverage    76.90%   76.89%   -0.02%     
===========================================
  Files          500      500              
  Lines        27005    27000       -5     
  Branches      2753     2752       -1     
===========================================
- Hits         20769    20762       -7     
- Misses        5702     5704       +2     
  Partials       534      534              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SanttuA SanttuA merged commit c0f51d4 into develop Jan 10, 2024
6 of 7 checks passed
@SanttuA SanttuA deleted the fix/m2m-jwt-settings branch March 20, 2024 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants