c0sco / ansible-modules-bitwarden

Bitwarden integrations for Ansible
GNU General Public License v3.0
109 stars 45 forks source link

Change logged_in func to parse bw status instead of BW_SESSION #13

Closed jameseck closed 3 years ago

jameseck commented 3 years ago

I use https://github.com/mjslabs/bitagent to handle Bitwarden sessions as I got fed up of having to "bw login" constantly. Bitagent does not set BW_SESSION so this PR modifies the logged_in() func to parse bw status instead of relying on BW_SESSION.

I'm not a python developer so the exception handling etc might need tweaking.

c0sco commented 3 years ago

Thank you!