mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 23:39:41 +02:00
feat(oauth): add providers to providers-selector
This commit is contained in:
parent
c1939f6070
commit
90281fd7f0
4 changed files with 33 additions and 12 deletions
|
@ -1,4 +1,20 @@
|
|||
angular.module('portainer.extensions.oauth')
|
||||
.component('oauthProvidersSelector', {
|
||||
templateUrl: 'app/extensions/oauth/components/oauth-providers-selector/oauth-providers-selector.html'
|
||||
});
|
||||
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'
|
||||
}
|
||||
];
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue