Buddy auth with Luminus

77 views
Skip to first unread message

Chris Laux

unread,
Nov 23, 2017, 7:47:10 AM11/23/17
to Luminus
Hi,

is there an official way to use Buddy auth (esp. http basic auth for protecting staging setup) with Luminus? I just tried to just plug it in and can't get it to work. I get an "Unauthorized" exception thrown instead of Buddy asking for credentials.

Cheers,
Chris

Dmitri

unread,
Nov 23, 2017, 9:50:06 AM11/23/17
to Luminus
The basic scaffolding for Buddy will be setup when you create a project with +auth profile. You can take a look at a real world usage example here https://github.com/yogthos/memory-hole

Chris Laux

unread,
Nov 23, 2017, 10:23:31 AM11/23/17
to Luminus
So there's obviously no way to apply +auth retrospectively, right? That would be a nice feature :) I made some changes down the lines of memory-hole, but they do use a different backend than http-basic-auth. I just can't get it to challenge the user for a password. I guess I should ask the buddy list. Thanks.

Dmitri

unread,
Nov 23, 2017, 8:09:59 PM11/23/17
to Luminus
I've considered runtime modules, but that requires a quite a bit of design to figure out what the scope of the module functionality would be, and how the modules would interact with one another. My experience is that this type of code often ends up being application specific, so it's hard to make general assumptions about how it will be used. With the template approach, you can easily customize the generated code to fit whatever you're doing. The downside is that it's not really possible to inject templated functionality into an existing projects.

Duct https://github.com/duct-framework/duct is attempting to address this problem, so it might be worth looking at as well.
Reply all
Reply to author
Forward
0 new messages