Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DerbyJS and Authentication

Does DerbyJS in current shape can implement authentication, if yes what's best way to do it? of not is their any work around to do it?

like image 232
mabuzer Avatar asked Apr 30 '12 21:04

mabuzer


4 Answers

I'm very happy to share that Derby has released the first version of Access Control at the Racer level. Initial details are in the Racer package at https://github.com/codeparty/racer/blob/master/src/accessControl/README.md.

You track its ongoing progress with this github issue - https://github.com/codeparty/derby/issues/47#issuecomment-6337980

like image 147
studgeek Avatar answered Nov 10 '22 00:11

studgeek


Use the derby-auth npm module: https://github.com/lefnire/derby-auth

like image 6
lefnire Avatar answered Nov 10 '22 00:11

lefnire


No it does not yet, although the developers have said that it's one of the top things that they're working on. https://twitter.com/#!/derbyjs/status/194463304440221698

You might be able to build it in to your application, but at this point it doesn't really seem worth it. Unless you need it ASAP, I'd just wait until the developers officially release integrated auth.

like image 4
switz Avatar answered Nov 09 '22 23:11

switz


You could simply use a reverse proxy to provide the security and https termination.

I'm currently trying NGINX.

Restrict the Derby server to listen on localhost and get NGINX to be the https terminator along with providing Basic Auth - or work up your own form-based login in Derby and keep NGINX as the https terminator/proxy.

like image 2
Julian Knight Avatar answered Nov 09 '22 23:11

Julian Knight