I am trying to use Basic Auth with a custom action but I am not sure how to pass in the username and password.
For example using curl I would do this:
curl --user myuser:mypass https://mysite.com/wp-json/wp/v2/users/me
Or in Python I would do it like this
import requests
r = requests.get('mysite.com', auth=('myuser', 'mypass'))