mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
20 lines
650 B
JavaScript
20 lines
650 B
JavaScript
angular.module('portainer.extensions.oauth').component('oauthProvidersSelector', {
|
|
templateUrl: 'app/extensions/oauth/components/oauth-providers-selector/oauth-providers-selector.html',
|
|
bindings: {
|
|
onSelect: '<'
|
|
},
|
|
controller: function oauthProvidersSelectorController() {
|
|
this.providers = [
|
|
{
|
|
name: 'Facebook',
|
|
authUrl: 'https://www.facebook.com/v3.2/dialog/oauth',
|
|
accessTokenUrl: 'https://graph.facebook.com/v3.2/oauth/access_token',
|
|
resourceUrl: 'https://graph.facebook.com/v3.2/me?fields=email',
|
|
userIdentifier: 'email'
|
|
},
|
|
{
|
|
name: 'Custom'
|
|
}
|
|
];
|
|
}
|
|
});
|