Refactor web authentication#223
Refactor web authentication#223tillsteinbach merged 3 commits intotillsteinbach:mainfrom krzysdabro:refactor-auth
Conversation
krzysdabro
commented
Dec 15, 2024
- Replace regex with HTML parsers
- Move doWebAuth to VWWebSession
- Split doWebAuth into multiple methods
- Add Terms and Conditions form handling
|
Thank you for your contribution. This looks great! I have one thing where I'm unsure. I was also thinking in the past of automatically accepting terms and conditions and decided not to do it and ask the user to do it himself. The reason is that the user otherwise accepts something he will definitely not have looked at. While we all know that anyway no one will read the terms I'm fearing that just automatically accepting Terms and Conditions could be a reason for VW to be upset and to lock us out of the API. |
|
I checked out the branch, but I get this error right away: |
- Replace regex with HTML parsers - Move doWebAuth to VWWebSession - Split doWebAuth into multiple methods - Add Terms and Conditions form handling
|
It looks like double slash in URL is a no-go. I've updated the solution to use In my case, handling the terms is necessary because VW somehow can't save that I have accepted them and prompts me every time I log in through the library. |
Also if you comment out this: |
This error is gone now for me. |
I didn't help, I am instantly redirected to the I have already rebased the branch and this conditional is gone. |