[v10.4.x] AuthN: Fix signout redirect url (#88749)

* AuthN: Fix signout redirect url (#87631)

* Add missing return

* Use sign out redirect url from auth config if configured

* remove option from auth.jwt that is not used

(cherry picked from commit 0f3080ecb8)

* Fix types

---------

Co-authored-by: Karl Persson <kalle.persson@grafana.com>
This commit is contained in:
grafana-delivery-bot[bot]
2024-06-05 12:06:52 +02:00
committed by GitHub
co-authored by Karl Persson
parent 56a4af87d7
commit 4a20bb264a
4 changed files with 20 additions and 4 deletions
+1
View File
@@ -258,6 +258,7 @@ func (hs *HTTPServer) Logout(c *contextmodel.ReqContext) {
if err != nil {
hs.log.Error("Failed perform proper logout", "error", err)
c.Redirect(hs.Cfg.AppSubURL + "/login")
return
}
_, id := c.SignedInUser.GetNamespacedID()