Open patrick-kinsella-rf opened 3 months ago
You don't need to add it, it's already there. The TokenAuth object implements an authentication type that isn't supported by the underlying requests library, but the HTTPBasicAuth module (already part of requests) does exactly what you want. https://requests.readthedocs.io/en/latest/user/authentication/
You can even see it being used as part of the existing code here: https://github.com/oasis-open/cti-taxii-client/blob/54dabadf1a67517e99e6a8f2961614a2a4f5ad2c/taxii2client/common.py#L267
Possible to update to support basic auth?
Token
would need to beBasic
: https://github.com/oasis-open/cti-taxii-client/blob/54dabadf1a67517e99e6a8f2961614a2a4f5ad2c/taxii2client/common.py#L143