[erlang-questions] web frameworks - yet another question about ...

Max Lapshin <>
Thu Aug 25 14:15:26 CEST 2011


>
> has anybody any advice for how to make the user-management layer?
>


Hi, Joe. This is a well known problem: each project has its own
implementation of these tasks.

Ruby on Rails have several major implementations, and I can tell about
one of them (devise).
It is splitted in two parts: authenticator and user interface.

authenticator lives in callback modules before your
my_server:request/6 and can translate cookies of http headers to
your "Who" field. This authenticator can also use openid protocol or
oauth, or anything else, including LDAP etc.

user interface is basically copied to each program and includes view
templates for login, password recovery and registration.
It is a good idea to copy this architecture, because it works. With
problems, but works.



More information about the erlang-questions mailing list