1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-28 09:49:40 +02:00

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

This commit is contained in:
Anthony Lapenna 2019-03-01 11:24:47 +13:00
parent f5091ce5fb
commit 60fbfeba23

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];
}
});