add fields for team and organization saml attribute mappings

This commit is contained in:
Jake McDermott 2018-01-23 14:07:10 -05:00
parent a9b77eb706
commit 44d223b6c9
No known key found for this signature in database
GPG Key ID: 3B02CAD476EECB35
2 changed files with 16 additions and 3 deletions

View File

@ -1185,7 +1185,7 @@ register(
field_class=fields.SAMLTeamAttrField,
allow_null=True,
default=None,
label=_('SAML Team Map'),
label=_('SAML Team Attribute Mapping'),
help_text=_('Used to translate user team membership into Tower.'),
category=_('SAML'),
category_slug='saml',

View File

@ -71,15 +71,28 @@ export default ['i18n', function(i18n) {
codeMirror: true,
class: 'Form-textAreaLabel Form-formGroup--fullWidth'
},
SOCIAL_AUTH_SAML_ORGANIZATION_ATTR: {
type: 'textarea',
reset: 'SOCIAL_AUTH_SAML_ORGANIZATION_ATTR',
rows: 6,
codeMirror: true,
class: 'Form-textAreaLabel Form-formGroup--fullWidth'
},
SOCIAL_AUTH_SAML_TEAM_MAP: {
type: 'textarea',
reset: 'SOCIAL_AUTH_SAML_TEAM_MAP',
rows: 6,
codeMirror: true,
class: 'Form-textAreaLabel Form-formGroup--fullWidth'
}
},
SOCIAL_AUTH_SAML_TEAM_ATTR: {
type: 'textarea',
reset: 'SOCIAL_AUTH_SAML_TEAM_ATTR',
rows: 6,
codeMirror: true,
class: 'Form-textAreaLabel Form-formGroup--fullWidth'
},
},
buttons: {
reset: {
ngShow: '!user_is_system_auditor',