= ({
+ dataSourceConfig,
+ onChange,
+ showForwardOAuthIdentityOption = true,
+}) => {
return (
<>
@@ -31,15 +35,19 @@ export const HttpProxySettings: React.FC = ({ dataSourceC
onChange={(event) => onChange({ ...dataSourceConfig.jsonData, tlsSkipVerify: event!.currentTarget.checked })}
/>
-
- onChange({ ...dataSourceConfig.jsonData, oauthPassThru: event!.currentTarget.checked })}
- tooltip="Forward the user's upstream OAuth identity to the data source (Their access token gets passed along)."
- />
-
+ {showForwardOAuthIdentityOption && (
+
+
+ onChange({ ...dataSourceConfig.jsonData, oauthPassThru: event!.currentTarget.checked })
+ }
+ tooltip="Forward the user's upstream OAuth identity to the data source (Their access token gets passed along)."
+ />
+
+ )}
>
);
};
diff --git a/packages/grafana-ui/src/components/DataSourceSettings/types.ts b/packages/grafana-ui/src/components/DataSourceSettings/types.ts
index ddb803fdf86..8d8115a6c17 100644
--- a/packages/grafana-ui/src/components/DataSourceSettings/types.ts
+++ b/packages/grafana-ui/src/components/DataSourceSettings/types.ts
@@ -11,6 +11,8 @@ export interface HttpSettingsBaseProps {
dataSourceConfig: DataSourceSettings;
/** Callback for handling changes to the configuration object */
onChange: (config: DataSourceSettings) => void;
+ /** Show the Forward OAuth identity option */
+ showForwardOAuthIdentityOption?: boolean;
}
export interface HttpSettingsProps extends HttpSettingsBaseProps {
diff --git a/packages/grafana-ui/src/components/DateTimePickers/DateTimePicker/DateTimePicker.mdx b/packages/grafana-ui/src/components/DateTimePickers/DateTimePicker/DateTimePicker.mdx
index 3b2b2865faf..90ecbc0f84a 100644
--- a/packages/grafana-ui/src/components/DateTimePickers/DateTimePicker/DateTimePicker.mdx
+++ b/packages/grafana-ui/src/components/DateTimePickers/DateTimePicker/DateTimePicker.mdx
@@ -1,13 +1,15 @@
-import { ArgsTable} from '@storybook/addon-docs/blocks';
-import { DateTimePicker } from "./DateTimePicker";
+import { ArgsTable } from '@storybook/addon-docs/blocks';
+import { DateTimePicker } from './DateTimePicker';
# DateTimePicker
+
A component for selecting a date _and_ time.
### Usage
+
```tsx
-import React, { useState} from 'react';
-import {DateTime, dateTime} from '@grafana/data';
+import React, { useState } from 'react';
+import { DateTime, dateTime } from '@grafana/data';
import { DateTimePicker } from '@grafana/ui';
const [date, setDate] = useState(dateTime('2021-05-05 12:00:00'));
@@ -15,4 +17,5 @@ return ;
```
### Props
+
diff --git a/public/app/core/angular_wrappers.ts b/public/app/core/angular_wrappers.ts
index 1fb3645faad..775c4df0908 100644
--- a/public/app/core/angular_wrappers.ts
+++ b/public/app/core/angular_wrappers.ts
@@ -166,6 +166,7 @@ export function registerAngularDirectives() {
'defaultUrl',
'showAccessOptions',
'dataSourceConfig',
+ 'showForwardOAuthIdentityOption',
['onChange', { watchDepth: 'reference', wrapApply: true }],
]);
react2AngularDirective('folderPicker', FolderPicker, [
diff --git a/public/app/features/datasources/partials/http_settings_next.html b/public/app/features/datasources/partials/http_settings_next.html
index 57df2b526ba..9221136155f 100644
--- a/public/app/features/datasources/partials/http_settings_next.html
+++ b/public/app/features/datasources/partials/http_settings_next.html
@@ -1 +1,7 @@
-
+
diff --git a/public/app/features/datasources/settings/HttpSettingsCtrl.ts b/public/app/features/datasources/settings/HttpSettingsCtrl.ts
index 59b664a3272..4b01d2b3b36 100644
--- a/public/app/features/datasources/settings/HttpSettingsCtrl.ts
+++ b/public/app/features/datasources/settings/HttpSettingsCtrl.ts
@@ -6,6 +6,7 @@ coreModule.directive('datasourceHttpSettings', () => {
current: '=',
suggestUrl: '@',
noDirectAccess: '@',
+ showForwardOAuthIdentityOption: '@',
},
templateUrl: 'public/app/features/datasources/partials/http_settings_next.html',
link: {
diff --git a/public/app/plugins/panel/annolist/README.md b/public/app/plugins/panel/annolist/README.md
index 059f0762753..019f1a2885a 100644
--- a/public/app/plugins/panel/annolist/README.md
+++ b/public/app/plugins/panel/annolist/README.md
@@ -1,12 +1,11 @@
-# Annotation List Panel - Native Plugin
+# Annotation List Panel - Native Plugin
This Annotations List panel is **included** with Grafana.
-Using the annotations list panel, you can quickly collect, filter and access annotations for easy reference or referral.
+Using the annotations list panel, you can quickly collect, filter and access annotations for easy reference or referral.
The annotations panel can be used to show annotations present within the panels on the current dashboard, or site-wide. Additional options include the ability to limit the list of annotations based on the current time range and the tags used on the annotations.
Read more about it here:
[http://docs.grafana.org/features/panels/annolist/](http://docs.grafana.org/features/panels/annolist/)
-
diff --git a/public/app/plugins/panel/geomap/README.md b/public/app/plugins/panel/geomap/README.md
index b73014a84b6..eb4bdf5e113 100644
--- a/public/app/plugins/panel/geomap/README.md
+++ b/public/app/plugins/panel/geomap/README.md
@@ -1,3 +1,3 @@
-# Geomap Panel - Native Plugin
+# Geomap Panel - Native Plugin
The Geomap is **included** with Grafana.