Forms based login page

Enhancement requests or feature requests for future Mylar releases.
Post Reply
2mny
Posts: 12
Joined: Fri May 23, 2014 7:11 pm

Forms based login page

Post 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.
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Forms based login page

Post 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.
mxhdme
Posts: 9
Joined: Sun Nov 06, 2016 7:01 pm

Re: Forms based login page

Post 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.
Aimhere
Posts: 98
Joined: Mon Apr 06, 2015 2:32 pm

Re: Forms based login page

Post 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!) :|
barbequesauce
Posts: 95
Joined: Fri Feb 03, 2017 3:59 pm

Re: Forms based login page

Post by barbequesauce »

There is a form-based authentication method in the development branch now... I didn’t write it but it looks & works great...
Post Reply