Modifying tower credential type to include an oauth otken

This commit is contained in:
John Westcott IV 2020-04-13 16:41:30 -04:00
parent c1bbeadf8d
commit 8a25f385e4
2 changed files with 1597 additions and 2208 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1114,15 +1114,21 @@ ManagedCredentialType(
'label': ugettext_noop('Verify SSL'),
'type': 'boolean',
'secret': False
}, {
'id': 'oauth_token',
'label': ugettext_noop('OAuth Token'),
'type': 'string',
'secret': True
}],
'required': ['host', 'username', 'password'],
'required': ['host'],
},
injectors={
'env': {
'TOWER_HOST': '{{host}}',
'TOWER_USERNAME': '{{username}}',
'TOWER_PASSWORD': '{{password}}',
'TOWER_VERIFY_SSL': '{{verify_ssl}}'
'TOWER_VERIFY_SSL': '{{verify_ssl}}',
'TOWER_OAUTH_TOKEN': '{{oauth_token}}'
}
},
)