Page 1 of 1

Forms based login page

Posted: Tue Jan 02, 2018 1:33 am
by 2mny
Hi,

I'd like to help get support for a forms based login page added to Mylar. I use a browser password manager plugin that no longer supports filling in credentials on basic authentication prompts so I haven't been able to use it with Mylar for a while.

I've been able to get a proof of concept working using the example session based auth code from here: https://github.com/cherrypy/tools/blob/ ... strictions. I have no problem working on the backend code however I don't currently have the webpage frontend skills to put together a decent looking login or config page. I think adding this sessions based auth code would also be a good start for supporting multiple users since it has a framework for user and group permissions per page.

Re: Forms based login page

Posted: Wed Jan 03, 2018 12:52 am
by evilhero
The forms based login is a good thing to have - I've thought about it myself on occasion, but wasn't able to find the time to delve into it very much. If you feel the urge to try, by all means PR's are readily accepted :)

IHowever, I have mixed feelings about multiple users within Mylar. I don't think it's something that would be occurring in the current iteration of Mylar. Alot of the backend stuff would have to get redone in order to accommodate more than one main user, and honestly if it's a recode of that magnitude, it'd be better to just start from a clean slate entirely (which I don't have the time to start such a project at this time at least).

I could be entirely wrong about the multiple users thing - I just don't see it being a valued part of Mylar that would be used by more than a few people, but changing the codebase would be huge to accommodate such a task.

Re: Forms based login page

Posted: Sat Jan 06, 2018 5:48 pm
by mxhdme
There are external to mylar options for setting up mylar with form auth using a reverse proxy and a web server. There are two good guides for doing this that I have found:

1) Using apache, reverse proxy and form auth: https://github.com/xombiemp/ultimate-torrent-setup/wiki
2) Using Nginx, reverse proxy, and Organizr for auth: https://github.com/dimitrijp/Organizr-Nginx/wiki

I used to first guide for about a year and a half, but just switched the second. The second is really nice, because it allows for integration with much more self hosted applications.

Re: Forms based login page

Posted: Mon Feb 12, 2018 12:56 am
by Aimhere
I'd also like to +1 on the idea of forms-based logins. My Lastpass password manager just doesn't work with "pop-up" basic HTTP authentication, making it a pain to use password-based security with Mylar. (I have a password manager so I don't have to type usernames and passwords, dangit!) :|

Re: Forms based login page

Posted: Mon Feb 12, 2018 1:04 am
by barbequesauce
There is a form-based authentication method in the development branch now... I didn’t write it but it looks & works great...