When authenticating with a username and password the test_authorization() function is called twice. First from L103 into password_authenticate() then into test_authorization(). The first stage works correctly and it authenticates with a 200.
Then L109 invokes test_authorization() and then the self.session is set to None for some reason. Results in a failure to authenticate.
File "/usr/local/lib/python3.10/site-packages/soarsdk/client.py", line 87, in __init__
self.connect(**kwargs)
File "/usr/local/lib/python3.10/site-packages/soarsdk/client.py", line 109, in connect
self.test_authorization()
File "/usr/local/lib/python3.10/site-packages/soarsdk/client.py", line 118, in test_authorization
response: requests.Response = self.session.get(url, verify=False)
AttributeError: 'NoneType' object has no attribute 'get'
When authenticating with a username and password the test_authorization() function is called twice. First from L103 into password_authenticate() then into test_authorization(). The first stage works correctly and it authenticates with a 200.
Then L109 invokes test_authorization() and then the self.session is set to None for some reason. Results in a failure to authenticate.