mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06: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:
parent
e88687cfa2
commit
c5f77b6a46
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user