Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't login #5

Open
sirago opened this issue Mar 26, 2018 · 4 comments
Open

can't login #5

sirago opened this issue Mar 26, 2018 · 4 comments

Comments

@sirago
Copy link

sirago commented Mar 26, 2018

Did something with authentication change again? I'm unable to log in.

@sirago
Copy link
Author

sirago commented Mar 26, 2018

It seems like it has something to do with the initial cookie. When I copy/paste a cookie that I get from Fedex.com into the login request in the program, it works. Maybe it's not passing along the cookie from the initial request?

@sirago
Copy link
Author

sirago commented Mar 26, 2018

Got it.

After "r1 = session.get(LOGIN_REFERER)" you need to make a POST request to https://www.fedex.com/_bm/_data (check the FedEx site to see the data it sends). After that, it works again.

@sirago
Copy link
Author

sirago commented Mar 26, 2018

Unfortunately that value is timestamped and expires. I got it working by using Selenium to get the homepage to do its thing with all the cookies, then passing the cookies from Selenium to Requests. Not great, but worked.

@happyleavesaoc
Copy link
Owner

I made some attempts as well, but I think there's some Javascript setting cookies, which is why Selenium works. We should probably convert over to that approach (just like was done with python-myusps)

brianjking added a commit to brianjking/homeassistant-config that referenced this issue Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants