Im trying to log into an exchangeserver with the exchangelib. When I try to run the script it gives me an error: File "/usr/local/lib/python3.5/dist-packages/exchangelib/protocol.py", line 61, in init assert isinstance(credentials, Credentials) AssertionError
From what I can understand it says my credential variabel is not of the right type. I have tried both with and without autodiscover enabled. I get the same error. Here is the relevant code.
credents = Credentials(username='domain\\aaa.fh', password= 'password'),
config = Configuration(server='domain.aaa.no', credentials= credents)
account = Account(
primary_smtp_address='fh@domain.no',
config=config,
autodiscover=True,
access_type=DELEGATE)