Skip to content

Commit

Permalink
misc: add auth
Browse files Browse the repository at this point in the history
Signed-off-by: Jan-Otto Kröpke <[email protected]>
  • Loading branch information
jkroepke committed Aug 10, 2024
1 parent cbb2229 commit 5993727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/plugin/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ func (app *App) handleReport(w http.ResponseWriter, req *http.Request) {
ctxLogger.Debug("using Grafana user sign-in token")

credential = client.Credential{
HeaderName: GrafanaUserSignInTokenHeaderName,
HeaderValue: req.Header.Get(GrafanaUserSignInTokenHeaderName),
HeaderName: backend.OAuthIdentityTokenHeaderName,
HeaderValue: "Bearer " + req.Header.Get(GrafanaUserSignInTokenHeaderName),
}
case req.Header.Get(backend.OAuthIdentityTokenHeaderName) != "":
ctxLogger.Debug("using OAuth identity token")
Expand Down

0 comments on commit 5993727

Please sign in to comment.