Skip to content

Commit

Permalink
handle users case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
sepich committed May 13, 2024
1 parent 51a13b6 commit 8913bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (e *Enforcer) lookupUser(req *http.Request) (labels.Labels, error) {
if org == "" {
return nil, fmt.Errorf("X-Scope-OrgID header not found in request")
}
user := req.Header.Get("X-Grafana-User")
user := strings.ToLower(req.Header.Get("X-Grafana-User"))
if user == "" {
return nil, fmt.Errorf("X-Grafana-User header not found in request")
}
Expand Down

0 comments on commit 8913bfe

Please # to comment.