rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: budro on November 10, 2008, 01:39:39 AM

Title: Direct login links?
Post by: budro on November 10, 2008, 01:39:39 AM
Ok, so is there a way to create a direct login link? Like, i know the login is at "~login" is there any switch i could use to alter that in order to have someone redirected straight to their page? for instance, i know with the FTP protocol you could go something like "ftp://test:test@whatever.com"


could we do something similar to that?
Title: Re: Direct login links?
Post by: Foggy on November 10, 2008, 05:09:20 AM
indeed you can,

just use http://test:test@whatever.com
Title: Re: Direct login links?
Post by: budro on November 11, 2008, 12:48:34 AM
that doesn't work like I want it to. it takes you to the site, then asks something like "this site is trying to log you in as... could be a trick continue?" then I hit yes, then it goes to my site, but is not logged in until you hit the 'login' button, which is not what i want, i want it to automatically be logged in
Title: Re: Direct login links?
Post by: rejetto on November 11, 2008, 12:50:20 AM
i fear this cannot be done at t he moment
Title: Re: Direct login links?
Post by: budro on November 14, 2008, 04:09:07 AM
Ok. New alternative then, when i attempt the method given above, my browser gives me an error message saying basically 'someone may be tricking you... do you want to log in with this name and password?' is that from HFS? Because if HFS sends that error, I would love to know how to change it.

The goal here is a work around for a logout system. They would click the logout button, which hyperlinks them to, say, http://logout:logout@httpserver.com and once they've done that, all permissions will be removed. so if i could change that error message, i could change it to something to the effect of "you've now logged out" or something


thanks
Title: Re: Direct login links?
Post by: Foggy on November 14, 2008, 12:37:42 PM
I don't want to ruin your day but I had that exact same idea some time ago and it never worked.

The reason it didn't work is because unless you close the browser, the username/password you were using previously is remembered by the browser and when you once again browse to a restricted folder those credentials are then used automatically.
Title: Re: Direct login links?
Post by: maverick on November 14, 2008, 07:36:59 PM
Ok. New alternative then, when i attempt the method given above, my browser gives me an error message saying basically 'someone may be tricking you... do you want to log in with this name and password?' is that from HFS? Because if HFS sends that error, I would love to know how to change it.

That message is from your browser. 
Title: Re: Direct login links?
Post by: rejetto on November 15, 2008, 03:34:10 PM
that's because HFS uses standard http authentication.
in the future hfs will use cookies/sessions, and such limits will be passed
Title: Re: Direct login links?
Post by: budro on November 15, 2008, 04:02:38 PM
ok thanks guys

looking forward to cookies :D