This document is for Django's development version, which can be significantly different from previous releases. Get old docs here: 1.1, 1.0
Authentication backends¶
This document details the authentication backends that come with Django. For information on how to use them and how to write your own authentication backends, see the Other authentication sources section of the User authentication guide.
Available authentication backends¶
The following backends are available in django.contrib.auth.backends:
- class ModelBackend¶
- This is the default authentication backend used by Django. It authenticates using usernames and passwords stored in the User model.
- class RemoteUserBackend¶
- New in Django 1.1: Please, see the release notes
Use this backend to take advantage of external-to-Django-handled authentication. It authenticates using usernames passed in request.META['REMOTE_USER']. See the Authenticating against REMOTE_USER documentation.
Questions/Feedback
Having trouble? We'd like to help!
- Try the FAQ -— it's got answers to many common questions.
- Search for information in the archives of the django-users mailing list, or post a question.
- Ask a question in the #django IRC channel, or search the IRC logs to see if its been asked before.
- If you notice errors with this documentation, please open a ticket and let us know! Please only use the ticket tracker for criticisms and improvements on the docs. For tech support, use the resources above.

