caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Bruno Deferrari <utizoc@gmail.com>
To: "Török Edwin" <edwin+ml-ocaml@etorok.net>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] ANN: ocaml-session
Date: Fri, 18 Dec 2015 13:52:49 -0300	[thread overview]
Message-ID: <CACnPB4p7GdtXi7Z72ww-4qhn_WsJ4NspVuEZEqagzfSNh983Wg@mail.gmail.com> (raw)
In-Reply-To: <56742C6F.4060905@etorok.net>

[-- Attachment #1: Type: text/plain, Size: 2010 bytes --]

On Fri, Dec 18, 2015 at 12:55 PM, Török Edwin <edwin+ml-ocaml@etorok.net>
wrote:

> On 12/17/2015 08:51 PM, Spiros Eliopoulos wrote:
> > Hey List,
> >
> > I'm happy to announce the initial release of ocaml-session:
> >
> >   https://github.com/inhabitedtype/ocaml-session
> >
> > ocaml-session is an session manager that handles cookie headers and
> backend storage for HTTP servers. The library supports CoHTTP and
> Webmachine; Async and Lwt; and pluggable backing stores based on a functor
> interface.
>
> Nice!
>
> >
> > The library ships with an in-memory backend (for development and
> testing) and a postgresql-ocaml[0] based backend.
>
> How about signed cookies as a storage backend?
> Python Flask and Django can use it to store session entirely in the
> cookies with an hmac signature and expiration time, so your server can be
> entirely stateless.
> As long as the amount of data in your session is small, and all you need
> is authenticated data (and not secret data) I think its quite an elegant
> solution,
> and more fitting with a functional style.
>
> Now of course comes the question Cryptokit or nocrypto :)
>
> [1] http://werkzeug.pocoo.org/docs/0.11/contrib/securecookie/
> [2] https://docs.djangoproject.com/en/1.9/topics/http/sessions/
> [3] http://pythonhosted.org/itsdangerous/
>
>
Here is a basic implementation of something similar to itsdangerous I wrote
a few days ago for a project I'm working on, it uses nocrypto:

https://gist.github.com/tizoc/975bfac960d7e5c60232

With a bit of work it could become an opam package.


>
> --
> Edwin Török | Co-founder and Lead Developer
>
> Skylable open-source object storage: reliable, fast, secure
> http://www.skylable.com
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>



-- 
BD

[-- Attachment #2: Type: text/html, Size: 3759 bytes --]

      parent reply	other threads:[~2015-12-18 16:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-17 18:51 Spiros Eliopoulos
2015-12-18  8:53 ` François Bobot
2015-12-18 15:55 ` Török Edwin
2015-12-18 16:36   ` Spiros Eliopoulos
2015-12-18 16:52   ` Bruno Deferrari [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACnPB4p7GdtXi7Z72ww-4qhn_WsJ4NspVuEZEqagzfSNh983Wg@mail.gmail.com \
    --to=utizoc@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=edwin+ml-ocaml@etorok.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).