I am trying to use couchdb as the backend for my application. The
database instance is exposed via a webservice which has authentication
methods.

I am using in memory cache and in memory sessions as we do not have a
relational database.

For authenticating against couch, I have written custom authentication
backend.

The code for my login method:
    if SESSION_KEY in request.session:
        if request.session[SESSION_KEY] != user.id:
            request.session.flush()
    else:
        request.session.cycle_key()
    request.session[SESSION_KEY] = user.id
    request.session[BACKEND_SESSION_KEY] = user.backend
    request.user = user

user is a custom object here which does not derive from Dj\ango's auth
User class.

On subsequent requests, request.user is anonymous user. What am I
missing?
However, I can get my user if I save it in the session manually. but I
am worried how that will affect by ability tp use other Django/third
party modules.
I am new to both Python and Django and I am sure this is something
obvious.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to