mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 08:18:10 -05:00
AuthN: Set LookupTokenErr and fall through in case of error (#61217)
ContextHandler: Set LookupTokenErr and fall through in case of error during authentication
This commit is contained in:
@@ -489,8 +489,8 @@ func (h *ContextHandler) initContextWithToken(reqContext *models.ReqContext, org
|
||||
reqContext.Resp.Before(h.deleteInvalidCookieEndOfRequestFunc(reqContext))
|
||||
}
|
||||
|
||||
writeErr(reqContext, err)
|
||||
return true
|
||||
reqContext.LookupTokenErr = err
|
||||
return false
|
||||
}
|
||||
|
||||
reqContext.IsSignedIn = true
|
||||
|
||||
Reference in New Issue
Block a user