PageRenderTime 81ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/docs/ref/authbackends.txt

https://code.google.com/p/mango-py/
Plain Text | 33 lines | 23 code | 10 blank | 0 comment | 0 complexity | b351e5dffd65697cc31b6bbc4426e32e MD5 | raw file
 1=======================
 2Authentication backends
 3=======================
 4
 5.. module:: django.contrib.auth.backends
 6   :synopsis: Django's built-in authentication backend classes.
 7
 8This document details the authentication backends that come with Django. For
 9information on how to use them and how to write your own authentication
10backends, see the :ref:`Other authentication sources section
11<authentication-backends>` of the :doc:`User authentication guide
12</topics/auth>`.
13
14
15Available authentication backends
16=================================
17
18The 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.