__init__.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. # -*- coding: utf-8 -*-
  2. """
  3. oauthlib.oauth2
  4. ~~~~~~~~~~~~~~
  5. This module is a wrapper for the most recent implementation of OAuth 2.0 Client
  6. and Server classes.
  7. """
  8. from __future__ import absolute_import, unicode_literals
  9. from .rfc6749.clients import Client
  10. from .rfc6749.clients import WebApplicationClient
  11. from .rfc6749.clients import MobileApplicationClient
  12. from .rfc6749.clients import LegacyApplicationClient
  13. from .rfc6749.clients import BackendApplicationClient
  14. from .rfc6749.clients import ServiceApplicationClient
  15. from .rfc6749.endpoints import AuthorizationEndpoint
  16. from .rfc6749.endpoints import TokenEndpoint
  17. from .rfc6749.endpoints import ResourceEndpoint
  18. from .rfc6749.endpoints import RevocationEndpoint
  19. from .rfc6749.endpoints import Server
  20. from .rfc6749.endpoints import WebApplicationServer
  21. from .rfc6749.endpoints import MobileApplicationServer
  22. from .rfc6749.endpoints import LegacyApplicationServer
  23. from .rfc6749.endpoints import BackendApplicationServer
  24. from .rfc6749.errors import *
  25. from .rfc6749.grant_types import AuthorizationCodeGrant
  26. from .rfc6749.grant_types import ImplicitGrant
  27. from .rfc6749.grant_types import ResourceOwnerPasswordCredentialsGrant
  28. from .rfc6749.grant_types import ClientCredentialsGrant
  29. from .rfc6749.grant_types import RefreshTokenGrant
  30. from .rfc6749.request_validator import RequestValidator
  31. from .rfc6749.tokens import BearerToken, OAuth2Token
  32. from .rfc6749.utils import is_secure_transport