feature(oauth): add provider selector

pull/2749/head
Chaim Lev Ari 2019-01-25 10:46:17 +02:00
parent 50c604ee4c
commit c1939f6070
3 changed files with 8 additions and 6 deletions

View File

@ -11,7 +11,7 @@
ng-model="$ctrl.selectedProvider"
ng-options="provider as provider for provider in $ctrl.providers"
>
<option value="">Custom</option>
<option value="">Custom </option>
</select>
</div>
</div>

View File

@ -0,0 +1,6 @@
angular.module('portainer.extensions.oauth')
.controller('OAuthSettingsController', function OAuthSettingsController() {
this.providers = [
'facebook'
]
});

View File

@ -1,9 +1,5 @@
<div class="form-group">
<span class="col-sm-12 text-muted small">
When using OAuth authentication, Portainer will allow users to optionally authenticate with an OAuth authorization server.
</span>
</div>
<div>
<!-- <oauth-providers-selector selected-provider="$ctrl.settings.provider" providers="$ctrl.providers"></oauth-providers-selector> -->
<div class="col-sm-12 form-section-title">OAuth Configuration</div>