mirror of
https://github.com/grafana/grafana.git
synced 2025-07-28 00:52:08 +08:00
Docs: Document new value mappings (#35067)
* Update value-mappings.md * Update value-mappings.md * Update whats-new-in-v8-0.md * Update add-authentication-for-data-source-plugins.md * Update _index.md * updates * Update docs/sources/panels/value-mappings.md Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> * Update value-mappings.md * Update value-mappings.md * Update panel-editor.md * Update panel-editor.md * Update docs/sources/panels/value-mappings.md Co-authored-by: Torkel Ödegaard <torkel@grafana.org> * Update value-mappings.md * Update value-mappings.md * Update value-mappings.md * Update value-mappings.md * Update value-mappings.md * Update value-mappings.md Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
This commit is contained in:
@ -286,7 +286,7 @@ func (ds *dataSource) QueryData(ctx context.Context, req *backend.QueryDataReque
|
||||
|
||||
If your data source uses the same OAuth provider as Grafana itself, for example using [Generic OAuth Authentication]({{< relref "../../auth/generic-oauth.md" >}}), your data source plugin can reuse the access token for the logged-in Grafana user.
|
||||
|
||||
To allow Grafana to pass the access token to the plugin, the user needs to enable **Forward OAuth Identity** on the data source configuration page. This tells Grafana to pass the token to the plugin in a Authorization header. Note that your plugin needs to use the [DataSourceHttpSettings]({{< relref "https://developers.grafana.com/ui/latest/index.html?path=/story/data-source-datasourcehttpsettings--basic" >}}) component in the configuration editor to expose the setting for your data source plugin.
|
||||
To allow Grafana to pass the access token to the plugin, the user needs to enable **Forward OAuth Identity** on the data source configuration page. This tells Grafana to pass the token to the plugin in a Authorization header. Note that your plugin needs to use the [DataSourceHttpSettings](https://developers.grafana.com/ui/latest/index.html?path=/story/data-source-datasourcehttpsettings--basic) component in the configuration editor to expose the setting for your data source plugin.
|
||||
|
||||
The Authorization header is available on the `DataQuery` object on the query data request in your backend data source.
|
||||
|
||||
|
Reference in New Issue
Block a user