~ubuntu-branches/ubuntu/utopic/python-django/utopic

« back to all changes in this revision

Viewing changes to docs/ref/authbackends.txt

  • Committer: Package Import Robot
  • Author(s): Luke Faraone, Jakub Wilk, Luke Faraone
  • Date: 2013-05-09 15:10:47 UTC
  • mfrom: (1.1.21) (4.4.27 sid)
  • Revision ID: package-import@ubuntu.com-20130509151047-aqv8d71oj9wvcv8c
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

[ Luke Faraone ]
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
=======================
2
 
Authentication backends
3
 
=======================
4
 
 
5
 
.. module:: django.contrib.auth.backends
6
 
   :synopsis: Django's built-in authentication backend classes.
7
 
 
8
 
This document details the authentication backends that come with Django. For
9
 
information on how to use them and how to write your own authentication
10
 
backends, see the :ref:`Other authentication sources section
11
 
<authentication-backends>` of the :doc:`User authentication guide
12
 
</topics/auth>`.
13
 
 
14
 
 
15
 
Available authentication backends
16
 
=================================
17
 
 
18
 
The following backends are available in :mod:`django.contrib.auth.backends`:
19
 
 
20
 
.. class:: ModelBackend
21
 
 
22
 
    This is the default authentication backend used by Django.  It
23
 
    authenticates using usernames and passwords stored in the
24
 
    :class:`~django.contrib.auth.models.User` model.
25
 
 
26
 
 
27
 
.. class:: RemoteUserBackend
28
 
 
29
 
    Use this backend to take advantage of external-to-Django-handled
30
 
    authentication.  It authenticates using usernames passed in
31
 
    :attr:`request.META['REMOTE_USER'] <django.http.HttpRequest.META>`.  See
32
 
    the :doc:`Authenticating against REMOTE_USER </howto/auth-remote-user>`
33
 
    documentation.