-
Notifications
You must be signed in to change notification settings - Fork 7
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
Login broken due to updated Leap Card site #20
Comments
So it looks like they're now using JavaScript both to generate the form and to provide a number of required values on the request (available in the global I've hacked something together that works for my purposes using |
Hi Alan! Thanks for creating the issue. It seems the login flow has changed entirely, now they're using a Microsoft SSO provider at https://transportforireland.b2clogin.com/ Previously the whole thing was done while staying within the leapcard.ie domain. Looking at the login request it might be possible to do the same as was done before, and send a manually constructed |
I did some digging on this and it appears that it should be possible to fake the whole login process using just HTTP requests, no Javascript. The flow goes something like this:
Note that you can also use Google or Facebook to complete the login process and this ignores them for the time being. I've tried searching for web scrapers that go through this |
Looks like the login flow was updated again sometime in the last few days, so I'm now consistently getting the following error on login
I'm not a python developer so it might take me a while to get up to speed and work on a fix. I'll give it a go anyway as a learning experience, but happy to defer to anyone else who gets there first.
The text was updated successfully, but these errors were encountered: