Commit f79dc0a8 by Sean Lafferty

Remove auth_module settings from oauthPassThru ui

parent 4324a7f5
......@@ -88,17 +88,7 @@
checked="current.jsonData.tlsSkipVerify" switch-class="max-width-6"></gf-form-checkbox>
</div>
<div class="gf-form-inline">
<gf-form-switch class="gf-form" ng-if="current.access=='proxy'" label="Forward OAuth Identity" label-class="width-13" tooltip="Forward the user's upstream OAuth identity to the datasource (Their access token gets passed along)." label-class="width-10" checked="current.jsonData.oauthPassThru" switch-class="max-width-6"></gf-form-switch>
</div>
</div>
<div class="gf-form-group" ng-if="current.jsonData.oauthPassThru">
<h6>OAuth Identity Forwarding Details</h6>
<div class="gf-form max-width-30">
<span class="gf-form-label width-10">OAuth Source</span>
<div class="gf-form-select-wrapper max-width-24">
<select class="gf-form-input" ng-model="current.jsonData.oauthPassThruProvider" ng-options="f.key as f.value for f in oauthProviders"></select>
</div>
<gf-form-checkbox class="gf-form" ng-if="current.access=='proxy'" label="Forward OAuth Identity" label-class="width-13" tooltip="Forward the user's upstream OAuth identity to the datasource (Their access token gets passed along)." checked="current.jsonData.oauthPassThru" switch-class="max-width-6"></gf-form-checkbox>
</div>
</div>
......
......@@ -20,13 +20,6 @@ coreModule.directive('datasourceHttpSettings', () => {
$scope.getSuggestUrls = () => {
return [$scope.suggestUrl];
};
$scope.oauthProviders = [
{ key: 'oauth_google', value: 'Google OAuth' },
{ key: 'oauth_gitlab', value: 'GitLab OAuth' },
{ key: 'oauth_generic_oauth', value: 'Generic OAuth' },
{ key: 'oauth_grafana_com', value: 'Grafana OAuth' },
{ key: 'oauth_github', value: 'GitHub OAuth' },
];
},
},
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment