personalcapital
personalcapital copied to clipboard
Bugfixes to handle changes to Personal Capital CSRF token parsing
Fixes to get login working again for this API.
- updated regex parsing of the CSRF token
- change the
user-agent
header to get through Cloudflare filtering - raise useful exceptions to aid in future debugging
- set device name to
Personal Capital Python API
, to make identifying session in the account easier
@haochi , are you able to review this PR? PersonalCapital made some slight changes to how they store the CSRF token that prevents the API currently in master from functioning.
@hammem Did you ever run into an authenticate_password error: "Authorization required."? Not exactly sure what to do with it. I don't have 2FA. On __identify_user()
I am getting back a "USER_IDENTIFIED" auth_level
, not a "USER_REMEMBERED". Wondering if there's a simple explanation. Ty!
just wanted to add feedback about how this branch resolved my issues. I had to go reset my password to get my account unlocked before it would work.
@deanjgoldman @hammem I'm having the same issue with auth_level
= USER_IDENTIFIED instead of USER_REMEMBERED, any ideas?
The lib was broken the last 1-2 weeks for me. This branch fixed it.
I'm wondering what will happen when/if "empower" full takes over the domain and page. The domain is still personalcapital for now.