How can i specify HTTPBasicAuth Authentication in AWX Webhook Notifications

I am trying to send Webhook Notifications about the job completion from AWX to MS Teams. I am able to do this using Python requests by specifying required credentials (username, password) as HTTPBasicAuth values.

How can i specify the Authentication value in the AWX Webhook Notification headers or translate the credentials into the required format?

If teams is doing basic auth you can construct the authorization header yourself and pass it in. The basic auth header would look like:
Authorization: Basic
Where the encoded cred is a base64 encoding of “username:password”. There are some online tools for doing this or, if you have working python code with requests, you should be able to have requests dump out the encoded header for you.

-John

Thanks,

I tried this but i keep getting error when i test the notification.

I am using this for HTML Headers section:

{
“text”: “This is a test Notification from Ansible Tower!”,
“Authorization”: “Basic YW5rasdasddffw==”,
“title”: “Ansible Tower Notification”
}

This works when i test this using Python script and Postman but fails when using through AWX/Tower.