From ba723c911a7875430bbcf886ed0afe97305efcb5 Mon Sep 17 00:00:00 2001 From: Misi Date: Thu, 3 Aug 2023 09:18:44 +0200 Subject: [PATCH] Auth: Don't rotate session cookie from frontend for JWT Auth (#72744) Skip client token rotation for JWT auth --- public/app/core/services/context_srv.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/app/core/services/context_srv.ts b/public/app/core/services/context_srv.ts index 502d6fa72e8..f368133a68e 100644 --- a/public/app/core/services/context_srv.ts +++ b/public/app/core/services/context_srv.ts @@ -269,6 +269,11 @@ export class ContextSrv { return false; } + // skip if the user has been authenticated by JWT auth + if (this.user.authenticatedBy === 'jwt') { + return false; + } + return true; }