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