guard.py 630 B

1234567891011121314151617181920
  1. # -*- test-case-name: twisted.web.test.test_httpauth -*-
  2. # Copyright (c) Twisted Matrix Laboratories.
  3. # See LICENSE for details.
  4. """
  5. Resource traversal integration with L{twisted.cred} to allow for
  6. authentication and authorization of HTTP requests.
  7. """
  8. from __future__ import division, absolute_import
  9. # Expose HTTP authentication classes here.
  10. from twisted.web._auth.wrapper import HTTPAuthSessionWrapper
  11. from twisted.web._auth.basic import BasicCredentialFactory
  12. from twisted.web._auth.digest import DigestCredentialFactory
  13. __all__ = [
  14. "HTTPAuthSessionWrapper",
  15. "BasicCredentialFactory", "DigestCredentialFactory"]