mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
remove auth misc form and move fields under system misc form
This commit is contained in:
@@ -94,8 +94,7 @@ export default [
|
|||||||
{label: i18n._('LDAP'), value: 'ldap'},
|
{label: i18n._('LDAP'), value: 'ldap'},
|
||||||
{label: i18n._('RADIUS'), value: 'radius'},
|
{label: i18n._('RADIUS'), value: 'radius'},
|
||||||
{label: i18n._('SAML'), value: 'saml'},
|
{label: i18n._('SAML'), value: 'saml'},
|
||||||
{label: i18n._('TACACS+'), value: 'tacacs'},
|
{label: i18n._('TACACS+'), value: 'tacacs'}
|
||||||
{label: i18n._('MISC'), value: 'authMisc'}
|
|
||||||
];
|
];
|
||||||
|
|
||||||
authVm.ldapDropdownOptions = [
|
authVm.ldapDropdownOptions = [
|
||||||
@@ -198,12 +197,7 @@ export default [
|
|||||||
formDef: formDefs.ldap5,
|
formDef: formDefs.ldap5,
|
||||||
id: 'auth-ldap5-form',
|
id: 'auth-ldap5-form',
|
||||||
name: 'ldap5'
|
name: 'ldap5'
|
||||||
},
|
}
|
||||||
{
|
|
||||||
formDef: formDefs.authMisc,
|
|
||||||
id: 'auth-misc-form',
|
|
||||||
name: 'authMisc'
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
var forms = _.map(authForms, 'formDef');
|
var forms = _.map(authForms, 'formDef');
|
||||||
_.each(forms, function(form) {
|
_.each(forms, function(form) {
|
||||||
|
|||||||
@@ -97,10 +97,6 @@
|
|||||||
<div ng-show="authVm.activeAuthForm === 'saml'">
|
<div ng-show="authVm.activeAuthForm === 'saml'">
|
||||||
<div id="auth-saml-form"></div>
|
<div id="auth-saml-form"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div ng-show="authVm.activeAuthForm === 'authMisc'">
|
|
||||||
<div id="auth-misc-form"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
/*************************************************
|
|
||||||
* Copyright (c) 2016 Ansible, Inc.
|
|
||||||
*
|
|
||||||
* All Rights Reserved
|
|
||||||
*************************************************/
|
|
||||||
|
|
||||||
export default ['i18n', function(i18n) {
|
|
||||||
return {
|
|
||||||
name: 'configuration_authMisc_template',
|
|
||||||
showActions: true,
|
|
||||||
showHeader: false,
|
|
||||||
|
|
||||||
fields: {
|
|
||||||
ACCESS_TOKEN_EXPIRE_SECONDS: {
|
|
||||||
type: 'text',
|
|
||||||
reset: 'ACCESS_TOKEN_EXPIRE_SECONDS'
|
|
||||||
},
|
|
||||||
AUTHORIZATION_CODE_EXPIRE_SECONDS: {
|
|
||||||
type: 'text',
|
|
||||||
reset: 'AUTHORIZATION_CODE_EXPIRE_SECONDS'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
buttons: {
|
|
||||||
reset: {
|
|
||||||
ngShow: '!user_is_system_auditor',
|
|
||||||
ngClick: 'vm.resetAllConfirm()',
|
|
||||||
label: i18n._('Revert all to default'),
|
|
||||||
class: 'Form-resetAll'
|
|
||||||
},
|
|
||||||
cancel: {
|
|
||||||
ngClick: 'vm.formCancel()',
|
|
||||||
},
|
|
||||||
save: {
|
|
||||||
ngClick: 'vm.formSave()',
|
|
||||||
ngDisabled: "!enterprise_auth || configuration_authMisc_template_form.$invalid || configuration_authMisc_template_form.$pending"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
@@ -19,7 +19,6 @@ export default [
|
|||||||
'configurationRadiusForm',
|
'configurationRadiusForm',
|
||||||
'configurationTacacsForm',
|
'configurationTacacsForm',
|
||||||
'configurationSamlForm',
|
'configurationSamlForm',
|
||||||
'configurationMiscForm',
|
|
||||||
'systemActivityStreamForm',
|
'systemActivityStreamForm',
|
||||||
'systemLoggingForm',
|
'systemLoggingForm',
|
||||||
'systemMiscForm',
|
'systemMiscForm',
|
||||||
@@ -45,7 +44,6 @@ export default [
|
|||||||
configurationRadiusForm,
|
configurationRadiusForm,
|
||||||
configurationTacacsForm,
|
configurationTacacsForm,
|
||||||
configurationSamlForm,
|
configurationSamlForm,
|
||||||
configurationMiscForm,
|
|
||||||
systemActivityStreamForm,
|
systemActivityStreamForm,
|
||||||
systemLoggingForm,
|
systemLoggingForm,
|
||||||
systemMiscForm,
|
systemMiscForm,
|
||||||
@@ -73,7 +71,6 @@ export default [
|
|||||||
'radius': configurationRadiusForm,
|
'radius': configurationRadiusForm,
|
||||||
'tacacs': configurationTacacsForm,
|
'tacacs': configurationTacacsForm,
|
||||||
'saml': configurationSamlForm,
|
'saml': configurationSamlForm,
|
||||||
'authMisc': configurationMiscForm,
|
|
||||||
'activity_stream': systemActivityStreamForm,
|
'activity_stream': systemActivityStreamForm,
|
||||||
'logging': systemLoggingForm,
|
'logging': systemLoggingForm,
|
||||||
'misc': systemMiscForm,
|
'misc': systemMiscForm,
|
||||||
|
|||||||
@@ -43,6 +43,14 @@ export default ['i18n', function(i18n) {
|
|||||||
ALLOW_OAUTH2_FOR_EXTERNAL_USERS: {
|
ALLOW_OAUTH2_FOR_EXTERNAL_USERS: {
|
||||||
type: 'toggleSwitch',
|
type: 'toggleSwitch',
|
||||||
},
|
},
|
||||||
|
ACCESS_TOKEN_EXPIRE_SECONDS: {
|
||||||
|
type: 'text',
|
||||||
|
reset: 'ACCESS_TOKEN_EXPIRE_SECONDS'
|
||||||
|
},
|
||||||
|
AUTHORIZATION_CODE_EXPIRE_SECONDS: {
|
||||||
|
type: 'text',
|
||||||
|
reset: 'AUTHORIZATION_CODE_EXPIRE_SECONDS'
|
||||||
|
},
|
||||||
REMOTE_HOST_HEADERS: {
|
REMOTE_HOST_HEADERS: {
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
reset: 'REMOTE_HOST_HEADERS'
|
reset: 'REMOTE_HOST_HEADERS'
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ import configurationLdap5Form from './forms/auth-form/sub-forms/auth-ldap5.form.
|
|||||||
import configurationRadiusForm from './forms/auth-form/sub-forms/auth-radius.form.js';
|
import configurationRadiusForm from './forms/auth-form/sub-forms/auth-radius.form.js';
|
||||||
import configurationTacacsForm from './forms/auth-form/sub-forms/auth-tacacs.form.js';
|
import configurationTacacsForm from './forms/auth-form/sub-forms/auth-tacacs.form.js';
|
||||||
import configurationSamlForm from './forms/auth-form/sub-forms/auth-saml.form';
|
import configurationSamlForm from './forms/auth-form/sub-forms/auth-saml.form';
|
||||||
import configurationMiscForm from './forms/auth-form/sub-forms/auth-misc.form';
|
|
||||||
|
|
||||||
//system sub-forms
|
//system sub-forms
|
||||||
import systemActivityStreamForm from './forms/system-form/sub-forms/system-activity-stream.form.js';
|
import systemActivityStreamForm from './forms/system-form/sub-forms/system-activity-stream.form.js';
|
||||||
@@ -57,7 +56,6 @@ angular.module('configuration', [])
|
|||||||
.factory('configurationRadiusForm', configurationRadiusForm)
|
.factory('configurationRadiusForm', configurationRadiusForm)
|
||||||
.factory('configurationTacacsForm', configurationTacacsForm)
|
.factory('configurationTacacsForm', configurationTacacsForm)
|
||||||
.factory('configurationSamlForm', configurationSamlForm)
|
.factory('configurationSamlForm', configurationSamlForm)
|
||||||
.factory('configurationMiscForm', configurationMiscForm)
|
|
||||||
//system forms
|
//system forms
|
||||||
.factory('systemActivityStreamForm', systemActivityStreamForm)
|
.factory('systemActivityStreamForm', systemActivityStreamForm)
|
||||||
.factory('systemLoggingForm', systemLoggingForm)
|
.factory('systemLoggingForm', systemLoggingForm)
|
||||||
|
|||||||
Reference in New Issue
Block a user