Add ability to configure OIDC internal auth engine via superuser panel
This commit is contained in:
parent
e724125459
commit
bc82edb2d1
7 changed files with 103 additions and 14 deletions
|
@ -41,6 +41,10 @@ angular.module("core-config-setup", ['angularFileUpload'])
|
|||
return config.AUTHENTICATION_TYPE == 'Keystone';
|
||||
}, 'password': true},
|
||||
|
||||
{'id': 'oidc-auth', 'title': 'OIDC Authentication', 'condition': function(config) {
|
||||
return config.AUTHENTICATION_TYPE == 'OIDC';
|
||||
}},
|
||||
|
||||
{'id': 'signer', 'title': 'ACI Signing', 'condition': function(config) {
|
||||
return config.FEATURE_ACI_CONVERSION;
|
||||
}},
|
||||
|
@ -201,7 +205,7 @@ angular.module("core-config-setup", ['angularFileUpload'])
|
|||
return null;
|
||||
}
|
||||
|
||||
return key.substr(0, index);
|
||||
return key.substr(0, index).toLowerCase();
|
||||
};
|
||||
|
||||
$scope.getOIDCProviders = function(config) {
|
||||
|
@ -685,6 +689,12 @@ angular.module("core-config-setup", ['angularFileUpload'])
|
|||
$scope.configform.$setValidity('storageConfig', valid);
|
||||
};
|
||||
|
||||
$scope.$watch('config.INTERNAL_OIDC_SERVICE_ID', function(service_id) {
|
||||
if (service_id) {
|
||||
$scope.config['FEATURE_DIRECT_LOGIN'] = false;
|
||||
}
|
||||
});
|
||||
|
||||
$scope.$watch('config.FEATURE_STORAGE_REPLICATION', function() {
|
||||
refreshStorageConfig();
|
||||
});
|
||||
|
|
Reference in a new issue