Mika- / torrent-control

Firefox extension for adding torrents to remote clients.
https://addons.mozilla.org/addon/torrent-control/
179 stars 25 forks source link

Add support for form based logins to ruTorrent #123

Closed anthonyryan1 closed 2 years ago

anthonyryan1 commented 2 years ago

While HTTP Basic Auth is the most common, some installations use a HTML based login form that sets cookies to login to ruTorrent.

To support these use cases, we look for the standardized browser autocomplete hints in the HTML to identify which form elements we should fill (the same way a browser password autofill would). We then submit the form automatically.

Because we are relying on the autocomplete hints, we can support thousands of login form permutations without writing code that expects any particular type of form.

Mika- commented 2 years ago

That's a nice way to add a lot of compatibility 👍