Skip to content

Password based authentication failing #5

Description

@markcooke226

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions