From 5533f62a7115239a0aa1fa8efd0b1c792930f4cb Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Thu, 13 Feb 2025 11:28:21 +0100 Subject: [PATCH] [release-11.5.2] Auth: Add early return if `auth_token` is in the URL for JWT auth (#100574) Auth: Add early return if `auth_token` is in the URL for JWT auth (#100539) * Add early return * Update public/app/app.ts Co-authored-by: Victor Cinaglia --------- Co-authored-by: Victor Cinaglia (cherry picked from commit 5a6d2f2e49b8d7c3cb2032c3fe5e88eeed28d524) Co-authored-by: Misi --- public/app/app.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/app.ts b/public/app/app.ts index d7fc255af6c..697005cc91c 100644 --- a/public/app/app.ts +++ b/public/app/app.ts @@ -404,6 +404,7 @@ function handleRedirectTo(): void { if (queryParams.has('auth_token')) { // URL Login should not be redirected window.sessionStorage.removeItem(RedirectToUrlKey); + return; } if (queryParams.has(redirectToParamKey) && window.location.pathname !== '/') {