Forms based login page

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

Forms based login page

Post by 2mny » Tue Jan 02, 2018 1:33 am


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: ... 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
Site Admin
Posts: 2373
Joined: Sat Apr 20, 2013 3:43 pm

Re: Forms based login page

Post by evilhero » Wed Jan 03, 2018 12:52 am

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.

Posts: 9
Joined: Sun Nov 06, 2016 7:01 pm

Re: Forms based login page

Post by mxhdme » Sat Jan 06, 2018 5:48 pm

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:
2) Using Nginx, reverse proxy, and Organizr for auth:

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.

Posts: 95
Joined: Mon Apr 06, 2015 2:32 pm

Re: Forms based login page

Post by Aimhere » Mon Feb 12, 2018 12:56 am

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!) :|

Posts: 55
Joined: Fri Feb 03, 2017 3:59 pm

Re: Forms based login page

Post by barbequesauce » Mon Feb 12, 2018 1:04 am

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

Post Reply