Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/oauthlib/oauth2/__init__.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.3.2, created at 2023-12-08 06:22 +0000

1""" 

2oauthlib.oauth2 

3~~~~~~~~~~~~~~ 

4 

5This module is a wrapper for the most recent implementation of OAuth 2.0 Client 

6and Server classes. 

7""" 

8from .rfc6749.clients import ( 

9 BackendApplicationClient, Client, LegacyApplicationClient, 

10 MobileApplicationClient, ServiceApplicationClient, WebApplicationClient, 

11) 

12from .rfc6749.endpoints import ( 

13 AuthorizationEndpoint, BackendApplicationServer, IntrospectEndpoint, 

14 LegacyApplicationServer, MetadataEndpoint, MobileApplicationServer, 

15 ResourceEndpoint, RevocationEndpoint, Server, TokenEndpoint, 

16 WebApplicationServer, 

17) 

18from .rfc6749.errors import ( 

19 AccessDeniedError, FatalClientError, InsecureTransportError, 

20 InvalidClientError, InvalidClientIdError, InvalidGrantError, 

21 InvalidRedirectURIError, InvalidRequestError, InvalidRequestFatalError, 

22 InvalidScopeError, MismatchingRedirectURIError, MismatchingStateError, 

23 MissingClientIdError, MissingCodeError, MissingRedirectURIError, 

24 MissingResponseTypeError, MissingTokenError, MissingTokenTypeError, 

25 OAuth2Error, ServerError, TemporarilyUnavailableError, TokenExpiredError, 

26 UnauthorizedClientError, UnsupportedGrantTypeError, 

27 UnsupportedResponseTypeError, UnsupportedTokenTypeError, 

28) 

29from .rfc6749.grant_types import ( 

30 AuthorizationCodeGrant, ClientCredentialsGrant, ImplicitGrant, 

31 RefreshTokenGrant, ResourceOwnerPasswordCredentialsGrant, 

32) 

33from .rfc6749.request_validator import RequestValidator 

34from .rfc6749.tokens import BearerToken, OAuth2Token 

35from .rfc6749.utils import is_secure_transport 

36from .rfc8628.clients import DeviceClient