From d9ece98bbca3367056ba33c2dd3ba96a23042bbc Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 12 Aug 2021 17:22:42 +0200 Subject: [PATCH] core: fix token expiration not being updated upon key rotation Signed-off-by: Jens Langhammer --- authentik/core/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/authentik/core/models.py b/authentik/core/models.py index 4905e2965..bc3fa43ae 100644 --- a/authentik/core/models.py +++ b/authentik/core/models.py @@ -426,6 +426,7 @@ class Token(ManagedModel, ExpiringModel): from authentik.events.models import Event, EventAction self.key = default_token_key() + self.expires = default_token_duration() self.save(*args, **kwargs) Event.new( action=EventAction.SECRET_ROTATE,