Login without database

9 views
Skip to first unread message

Hernani Fernandes

unread,
Jun 26, 2014, 2:11:25 PM6/26/14
to django...@googlegroups.com


Hello,
i´d like to use the django to login but without connection on database.
I´ll consume webservices in another language to do this.
I made using the remote_user but i don´t know how to do this.

from django.contrib.auth import authenticate, logout, login

def sessao_login(request, _dados):
      user = authenticate(remote_user=_dados['email'])  

but when i put the login(request, user) this clean my session vars.. 
Is this the best way? 
How can i make this?
Thanks.

Reply all
Reply to author
Forward
0 new messages