__init__.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. """
  2. oauthlib.oauth2
  3. ~~~~~~~~~~~~~~
  4. This module is a wrapper for the most recent implementation of OAuth 2.0 Client
  5. and Server classes.
  6. """
  7. from .rfc6749.clients import (
  8. BackendApplicationClient, Client, LegacyApplicationClient,
  9. MobileApplicationClient, ServiceApplicationClient, WebApplicationClient,
  10. )
  11. from .rfc6749.endpoints import (
  12. AuthorizationEndpoint, BackendApplicationServer, IntrospectEndpoint,
  13. LegacyApplicationServer, MetadataEndpoint, MobileApplicationServer,
  14. ResourceEndpoint, RevocationEndpoint, Server, TokenEndpoint,
  15. WebApplicationServer,
  16. )
  17. from .rfc6749.errors import (
  18. AccessDeniedError, FatalClientError, InsecureTransportError,
  19. InvalidClientError, InvalidClientIdError, InvalidGrantError,
  20. InvalidRedirectURIError, InvalidRequestError, InvalidRequestFatalError,
  21. InvalidScopeError, MismatchingRedirectURIError, MismatchingStateError,
  22. MissingClientIdError, MissingCodeError, MissingRedirectURIError,
  23. MissingResponseTypeError, MissingTokenError, MissingTokenTypeError,
  24. OAuth2Error, ServerError, TemporarilyUnavailableError, TokenExpiredError,
  25. UnauthorizedClientError, UnsupportedGrantTypeError,
  26. UnsupportedResponseTypeError, UnsupportedTokenTypeError,
  27. )
  28. from .rfc6749.grant_types import (
  29. AuthorizationCodeGrant, ClientCredentialsGrant, ImplicitGrant,
  30. RefreshTokenGrant, ResourceOwnerPasswordCredentialsGrant,
  31. )
  32. from .rfc6749.request_validator import RequestValidator
  33. from .rfc6749.tokens import BearerToken, OAuth2Token
  34. from .rfc6749.utils import is_secure_transport
  35. from .rfc8628.clients import DeviceClient