2018-09-17 00:27:00 +00:00
|
|
|
"""
|
|
|
|
oauthlib.oauth2
|
|
|
|
~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
This module is a wrapper for the most recent implementation of OAuth 2.0 Client
|
|
|
|
and Server classes.
|
|
|
|
"""
|
2022-01-24 04:07:52 +00:00
|
|
|
from .rfc6749.clients import (
|
|
|
|
BackendApplicationClient, Client, LegacyApplicationClient,
|
|
|
|
MobileApplicationClient, ServiceApplicationClient, WebApplicationClient,
|
|
|
|
)
|
|
|
|
from .rfc6749.endpoints import (
|
|
|
|
AuthorizationEndpoint, BackendApplicationServer, IntrospectEndpoint,
|
|
|
|
LegacyApplicationServer, MetadataEndpoint, MobileApplicationServer,
|
|
|
|
ResourceEndpoint, RevocationEndpoint, Server, TokenEndpoint,
|
|
|
|
WebApplicationServer,
|
|
|
|
)
|
|
|
|
from .rfc6749.errors import (
|
|
|
|
AccessDeniedError, FatalClientError, InsecureTransportError,
|
|
|
|
InvalidClientError, InvalidClientIdError, InvalidGrantError,
|
|
|
|
InvalidRedirectURIError, InvalidRequestError, InvalidRequestFatalError,
|
|
|
|
InvalidScopeError, MismatchingRedirectURIError, MismatchingStateError,
|
|
|
|
MissingClientIdError, MissingCodeError, MissingRedirectURIError,
|
|
|
|
MissingResponseTypeError, MissingTokenError, MissingTokenTypeError,
|
|
|
|
OAuth2Error, ServerError, TemporarilyUnavailableError, TokenExpiredError,
|
|
|
|
UnauthorizedClientError, UnsupportedGrantTypeError,
|
|
|
|
UnsupportedResponseTypeError, UnsupportedTokenTypeError,
|
|
|
|
)
|
|
|
|
from .rfc6749.grant_types import (
|
|
|
|
AuthorizationCodeGrant, ClientCredentialsGrant, ImplicitGrant,
|
|
|
|
RefreshTokenGrant, ResourceOwnerPasswordCredentialsGrant,
|
|
|
|
)
|
2018-09-17 00:27:00 +00:00
|
|
|
from .rfc6749.request_validator import RequestValidator
|
|
|
|
from .rfc6749.tokens import BearerToken, OAuth2Token
|
|
|
|
from .rfc6749.utils import is_secure_transport
|
2022-11-07 18:06:49 +00:00
|
|
|
from .rfc8628.clients import DeviceClient
|