[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 <victor@grafana.com>

---------

Co-authored-by: Victor Cinaglia <victor@grafana.com>
(cherry picked from commit 5a6d2f2e49)

Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
This commit is contained in:
grafana-delivery-bot[bot]
2025-02-13 11:28:21 +01:00
committed by GitHub
co-authored by Misi
parent 49a32d71be
commit 5533f62a71
+1
View File
@@ -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 !== '/') {