Hi community, I am trying to setup a Python HTTP S...
# connector-development
g
Hi community, I am trying to setup a Python HTTP Source and I need to pass a Basic Authentication with username and password. I tried to use the HttpBasicAuth from requests.auth module as suggested but still does not get any permission authentication in the GET request. Here is the Source class definition
Copy code
class SourcePythonHttpTest(AbstractSource):
    def check_connection(self, logger, config) -> Tuple[bool, any]:
        return True, None

    def streams(self, config: Mapping[str, Any]) -> List[Stream]:
        auth = HTTPBasicAuth(username=config["username"], password="password")
        return [DerivedStream(authenticator=auth)]
Should I use any airbyte module for that?