Repository navigation
Conversation
❌ Deploy Preview for authentik-storybook failed.
|
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
Sorry. Look like this PR isn't enough to close #8834 |
|
thanks for the PR!
oh whoops missed your comment above |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8887 +/- ##
==========================================
+ Coverage 46.62% 52.07% +5.45%
==========================================
Files 626 635 +9
Lines 30996 31372 +376
==========================================
+ Hits 14451 16337 +1886
+ Misses 16545 15035 -1510
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
Is it possible that this JWT expiration problem is related to offline_access (default for new OAuth2 but not for old ones)? |
Hello,
While trying to fix the deprecated not_valid_before and not_valid_after in Python 3.12, you introduced a typo in authentik/crypto/apps.py with two not_valid_after_utc instead of a range with not_valid_before_utc and not_valid_after_utc.
I guess this regressed the validity of the JWT token and let it expire.
You should probably add a unit test to check not_valid_before as well.
This PR will close #8834
As check and workaround, I used ghcr.io/goauthentik/server:2024.2 docker image and
force replaced /authentik/crypto/apps.py using a volume in my docker stack.
N.B. I've also modified authentik/crypto/tests.py to align the "now" variable with the way it's defined in apps.py and rollback the change to use now from django.utils.timezone. I think the two should be unified.
Thank you in advance for considering and resolving this issue.
Related to issue #8834 and pull #8435