fix(oauth): fix settings displaying issue for custom OAuth configuration

pull/2749/head
Anthony Lapenna 2019-03-01 11:24:47 +13:00
parent f5091ce5fb
commit 60fbfeba23
1 changed files with 6 additions and 1 deletions

View File

@ -28,6 +28,11 @@ angular.module('portainer.extensions.oauth')
name: 'github'
},
{
authUrl: '',
accessTokenUrl: '',
resourceUrl: '',
userIdentifier: '',
scopes: '',
name: 'custom'
}
];
@ -53,6 +58,6 @@ angular.module('portainer.extensions.oauth')
else if (providerAuthURL.indexOf('github.com') !== -1) {
return ctrl.providers[2];
}
return ctrl.provider[3];
return ctrl.providers[3];
}
});