guard.py 587 B

123456789101112131415161718192021
  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 twisted.web._auth.basic import BasicCredentialFactory
  9. from twisted.web._auth.digest import DigestCredentialFactory
  10. # Expose HTTP authentication classes here.
  11. from twisted.web._auth.wrapper import HTTPAuthSessionWrapper
  12. __all__ = [
  13. "HTTPAuthSessionWrapper",
  14. "BasicCredentialFactory",
  15. "DigestCredentialFactory",
  16. ]