authbackends.txt 1.2 KB

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