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,6 +1,11 @@
|
|||
angular.module('portainer.extensions.oauth')
|
||||
.controller('OAuthSettingsController', function OAuthSettingsController() {
|
||||
this.providers = [
|
||||
'facebook'
|
||||
]
|
||||
});
|
||||
.controller('OAuthSettingsController', function OAuthSettingsController() {
|
||||
this.onSelectProvider = onSelectProvider;
|
||||
|
||||
function onSelectProvider(provider) {
|
||||
this.settings.AuthorizationURI = provider.authUrl;
|
||||
this.settings.AccessTokenURI = provider.accessTokenUrl;
|
||||
this.settings.ResourceURI = provider.resourceUrl;
|
||||
this.settings.UserIdentifier = provider.userIdentifier;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue