[Cubicweb] Pyramid & Cubicweb sessions/authentication integration

Christophe de Vienne christophe at unlish.com
Mon Jul 7 10:43:37 CEST 2014


Le 06/07/2014 18:35, Christophe de Vienne a écrit :
>
> Some basic explanations :
>
>   * The pyramid application uses directly the cw repo to check the
>     login/password of the user (110
>     <https://bitbucket.org/unlish/pyramid_cubicweb/src/07089fd649afaf50e0d0aee01be19100965c9b02/pyramid_cubicweb/__init__.py?at=default#cl-110>).
>   * The pyramid request has a custom attribute 'cw_session' that gets,
>     one way or another, a cubicweb session (164
>     <https://bitbucket.org/unlish/pyramid_cubicweb/src/07089fd649afaf50e0d0aee01be19100965c9b02/pyramid_cubicweb/__init__.py?at=default#cl-164>).
>   * A custom session manager (66
>     <https://bitbucket.org/unlish/pyramid_cubicweb/src/07089fd649afaf50e0d0aee01be19100965c9b02/pyramid_cubicweb/__init__.py?at=default#cl-66>)
>     rely on this new attribute to return the session to cubicweb.
>

I forgot to say that a side-effect is persistent sessions for free.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20140707/04473c21/attachment-0127.html>


More information about the Cubicweb mailing list