Top "Django-authentication" questions

django-authentication refers to the built-in auth module for authentication & authorization that can be extended.

How to pass Django request object in user_passes_test decorator callable function

I am using Django user_passes_test decorator to check the User Permission. @user_passes_test(lambda u: has_add_…

python django django-views django-authentication
Django Auth LDAP - Direct Bind using sAMAccountName

There are two ways to authenticate a user using Django Auth LDAP Search/Bind and Direct Bind. The first one …

python django active-directory django-authentication django-auth-ldap
Django/Auth: logout clears the session data?

I would like to know if auth.logout clears session data or i have to do it by my self. …

django session-variables django-authentication django-sessions
Most optimized way to delete all sessions for a specific user in Django?

I'm running Django 1.3, using Sessions Middleware and Auth Middleware: # settings.py SESSION_ENGINE = django.contrib.sessions.backends.db # Persist sessions …

python django session-cookies django-authentication django-sessions
'AnonymousUser' object is not iterable

if not request.user.is_authenticated: return None try: return ClientProfile.objects.get(user=request.user) except ClientProfile.DoesNotExist: return …

django django-authentication
Multiple Django apps, shared authentication

Two answers to this question, depending on whether sharing is across different sites or different subdomains Second answer: Multiple Django …

django django-authentication
Django user get_all_permissions() is empty while user_permissions is set

I added some permissions to a user via the admin interface. From some reason all the perm functions fail, e.…

django django-admin django-authentication django-permissions
How do I setup a unit test user for django app? The unit test can't login

I've enabled login authentication for my django app. Unit tests for views are not working because they get stuck at …

django unit-testing django-authentication django-testing
Django password reset. Not sending mail

I'm trying to get the django password reset working but the reset email does not get sent. I know my …

django email django-forms django-authentication
django-object-permissions Vs django-guardian Vs django-authority

I've found 3 row-level permission solutions for Django 1.2+ django-object-permissions django-guardian django-authority Could someone tell if there is any recommended more than …

django django-authentication django-apps django-permissions