mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -06:00
Docs: Fix typo in Forward OAuth identity for the logged-in user section (#46043)
Fixes #45938
This commit is contained in:
parent
f5705522aa
commit
843e587a05
@ -291,14 +291,13 @@ When configured, Grafana will pass the user's token to the plugin in an Authoriz
|
||||
|
||||
```go
|
||||
func (ds *dataSource) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error) {
|
||||
for _, q := range req.Queries {
|
||||
token := strings.Fields(q.Headers.Get("Authorization"))
|
||||
|
||||
token := strings.Fields(req.Headers["Authorization"])
|
||||
var (
|
||||
tokenType = token[0]
|
||||
accessToken = token[1]
|
||||
)
|
||||
|
||||
for _, q := range req.Queries {
|
||||
// ...
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user