mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 19:07:39 -02:30
Adding security token field to support ec2 sts
And any future credential that might want to use "security_token"
This commit is contained in:
@@ -46,7 +46,7 @@ class Credential(PasswordFieldsModel, CommonModelNameNotUnique):
|
||||
#('runas', _('Runas')),
|
||||
]
|
||||
|
||||
PASSWORD_FIELDS = ('password', 'ssh_key_data', 'ssh_key_unlock',
|
||||
PASSWORD_FIELDS = ('password', 'security_token', 'ssh_key_data', 'ssh_key_unlock',
|
||||
'become_password', 'vault_password')
|
||||
|
||||
class Meta:
|
||||
@@ -101,6 +101,13 @@ class Credential(PasswordFieldsModel, CommonModelNameNotUnique):
|
||||
help_text=_('Password for this credential (or "ASK" to prompt the '
|
||||
'user for machine credentials).'),
|
||||
)
|
||||
security_token = models.CharField(
|
||||
blank=True,
|
||||
default='',
|
||||
max_length=1024,
|
||||
verbose_name=_('Security Token'),
|
||||
help_text=_('Security Token for this credential'),
|
||||
)
|
||||
project = models.CharField(
|
||||
blank=True,
|
||||
default='',
|
||||
|
||||
Reference in New Issue
Block a user