commit
5d86fa80e7
19 changed files with 684 additions and 456 deletions
|
@ -353,12 +353,55 @@
|
|||
<select ng-model="config.AUTHENTICATION_TYPE">
|
||||
<option value="Database">Local Database</option>
|
||||
<option value="LDAP">LDAP</option>
|
||||
<option value="Keystone">Keystone (OpenStack Identity)</option>
|
||||
<option value="JWT">JWT Custom Authentication</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- Keystone Authentication -->
|
||||
<table class="config-table" ng-if="config.AUTHENTICATION_TYPE == 'Keystone'">
|
||||
<tr>
|
||||
<td>Keystone Authentication URL:</td>
|
||||
<td>
|
||||
<span class="config-string-field" binding="config.KEYSTONE_AUTH_URL"
|
||||
pattern="http(s)?://.+"></span>
|
||||
<div class="help-text">
|
||||
The URL (starting with http or https) of the Keystone Server endpoint for auth.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Keystone Administrator Username:</td>
|
||||
<td>
|
||||
<span class="config-string-field" binding="config.KEYSTONE_ADMIN_USERNAME"></span>
|
||||
<div class="help-text">
|
||||
The username for the Keystone admin.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Keystone Administrator Password:</td>
|
||||
<td>
|
||||
<input type="password" ng-model="config.KEYSTONE_ADMIN_PASSWORD"
|
||||
class="form-control" required></span>
|
||||
<div class="help-text">
|
||||
The password for the Keystone admin.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Keystone Administrator Tenant:</td>
|
||||
<td>
|
||||
<span class="config-string-field" binding="config.KEYSTONE_ADMIN_TENANT"></span>
|
||||
<div class="help-text">
|
||||
The tenant (project/group) that contains the administrator user.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- JWT Custom Authentication -->
|
||||
<div class="co-alert co-alert-info" ng-if="config.AUTHENTICATION_TYPE == 'JWT'">
|
||||
JSON Web Token authentication allows your organization to provide an HTTP endpoint that
|
||||
|
|
|
@ -31,6 +31,10 @@ angular.module("core-config-setup", ['angularFileUpload'])
|
|||
return config.AUTHENTICATION_TYPE == 'JWT';
|
||||
}, 'password': true},
|
||||
|
||||
{'id': 'keystone', 'title': 'Keystone Authentication', 'condition': function(config) {
|
||||
return config.AUTHENTICATION_TYPE == 'Keystone';
|
||||
}, 'password': true},
|
||||
|
||||
{'id': 'mail', 'title': 'E-mail Support', 'condition': function(config) {
|
||||
return config.FEATURE_MAILING;
|
||||
}},
|
||||
|
@ -203,7 +207,7 @@ angular.module("core-config-setup", ['angularFileUpload'])
|
|||
'</form>',
|
||||
"title": 'Enter Password',
|
||||
"buttons": {
|
||||
"verify": {
|
||||
"success": {
|
||||
"label": "Validate Config",
|
||||
"className": "btn-success",
|
||||
"callback": function() {
|
||||
|
|
Reference in a new issue