silolis89 / rutorrent

Automatically exported from code.google.com/p/rutorrent
0 stars 0 forks source link

Feature request: authentication module that supports logging in and out #272

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I realize this may be thrown back as a "will not fix" but i think it would
really be a major step in the right direction.  Now that we have multiple
user support which works VERY nice, i think it should be at least an OPTION
to have some kind of php or java based authentication module which doesn't
rely on the web server.  While basic and digest authentication is quite
sufficient for some setups, it doesn't support logging out, which in and of
itself isn't the most SECURE thing in the world, but on top of this, it
requires you to fully close your browser if you wish to log into another
user.  This is a major drawback and could easily be solved with some kind
of php login page.  This would be a major improvement and the natural "next
step" for multi user setups.

Original issue reported on code.google.com by Wonslung@gmail.com on 7 Feb 2010 at 12:23

GoogleCodeExporter commented 8 years ago
found this, thought it might help.  I really think having some kind of php 
session
authentication and perhaps a front login page is important for multi-user.
http://freshmeat.net/projects/php-auth/

The current system is fine for people who know how to set it up but one of the 
things
i'm asked most often is "how do i set up auth"

This is also the first step towards an admin panel.  (for multi-user, i'd 
imagine
something like this:  you go to your page, lets call it rutorrent.mypage.com, 
you'd
see a "login" screen.  At this screen you can log in.  The admin user would log 
in
and have a pretty normal looking rutorrent but would also have the ability to 
go to
an "admin" page/panel.  On this admin page you could set up other stuff...like 
change
users passwords, stuff like that.  I realize this isn't all going to happen over
night and may take awhile but the very first step in this is an admin page)

Original comment by Wonslung@gmail.com on 19 Feb 2010 at 11:07

GoogleCodeExporter commented 8 years ago

Original comment by novik65 on 10 Mar 2010 at 9:07

GoogleCodeExporter commented 8 years ago
Issue 427 has been merged into this issue.

Original comment by novik65 on 7 Jun 2010 at 8:23

GoogleCodeExporter commented 8 years ago
Note that you CAN log out it's just ugly -- change your url to 
http://nonexistinguser@rutorrent.example.com , close the tab, open new tab with 
http://rutorrent.example.com . Just very inconvinient.

Original comment by chx1...@gmail.com on 7 Jun 2010 at 2:28

GoogleCodeExporter commented 8 years ago
if this is true, then wouldn't it be possble to code a button like this based 
on mod 
rewrite or something?

Original comment by Wonslung@gmail.com on 7 Jun 2010 at 5:06

GoogleCodeExporter commented 8 years ago
This is a not true for common case. For example, some proxies does'nt uderstand 
such URL format.

Original comment by novik65 on 8 Jun 2010 at 7:33

GoogleCodeExporter commented 8 years ago
oh, yes, i am aware this wouldn't be a common use case but what *I'm* asking is:

provided what chx1975 says is true, i think it would be possible to use apache 
with mod_rewrite to accomplish a logout.

I will look into myself and see if it is possible, and if it proves to be 
something i can make work, then i will write a guide or wiki post on it.

Original comment by Wonslung@gmail.com on 8 Jun 2010 at 8:13

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Here is a simple way to add logoff to ruTorrent.

Open index.html in the ruTorrent root and edit it to reflect the following.

Add a new line after line 222 (<td><div 
class="sthdr">rTorrent:</div></td><td><div class="stval" 
id="rtorrentv"></div></td>)

Add this to the new line,

<td><div class="sthdr"><a href="http://logoff@host.tld/rutorrent/">Log 
Off</a></div></td>

Edit the link and you should be good to go.

What this does is pretty self explanatory.

You can make it cleaner by adding a little more code, but hey this gets the job 
done =)

Original comment by samad...@gmail.com on 15 Jun 2010 at 9:14