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.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ecadca42-a0a0-4211-a7b6-3a1a366c99dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment