Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
__init__.py84 linesDownload Raw Back to rfc6749
1"""2    authlib.oauth2.rfc67493    ~~~~~~~~~~~~~~~~~~~~~~4 5    This module represents a direct implementation of6    The OAuth 2.0 Authorization Framework.7 8    https://tools.ietf.org/html/rfc67499"""10 11from .requests import OAuth2Request, JsonRequest12from .wrappers import OAuth2Token13from .errors import (14    OAuth2Error,15    AccessDeniedError,16    MissingAuthorizationError,17    InvalidGrantError,18    InvalidClientError,19    InvalidRequestError,20    InvalidScopeError,21    InsecureTransportError,22    UnauthorizedClientError,23    UnsupportedResponseTypeError,24    UnsupportedGrantTypeError,25    UnsupportedTokenTypeError,26    # exceptions for clients27    MissingCodeException,28    MissingTokenException,29    MissingTokenTypeException,30    MismatchingStateException,31)32from .models import ClientMixin, AuthorizationCodeMixin, TokenMixin33from .authenticate_client import ClientAuthentication34from .authorization_server import AuthorizationServer35from .resource_protector import ResourceProtector, TokenValidator36from .token_endpoint import TokenEndpoint37from .grants import (38    BaseGrant,39    AuthorizationEndpointMixin,40    TokenEndpointMixin,41    AuthorizationCodeGrant,42    ImplicitGrant,43    ResourceOwnerPasswordCredentialsGrant,44    ClientCredentialsGrant,45    RefreshTokenGrant,46)47from .util import scope_to_list, list_to_scope48 49__all__ = [50    'OAuth2Token',51    'OAuth2Request', 'JsonRequest',52    'OAuth2Error',53    'AccessDeniedError',54    'MissingAuthorizationError',55    'InvalidGrantError',56    'InvalidClientError',57    'InvalidRequestError',58    'InvalidScopeError',59    'InsecureTransportError',60    'UnauthorizedClientError',61    'UnsupportedResponseTypeError',62    'UnsupportedGrantTypeError',63    'UnsupportedTokenTypeError',64    'MissingCodeException',65    'MissingTokenException',66    'MissingTokenTypeException',67    'MismatchingStateException',68    'ClientMixin', 'AuthorizationCodeMixin', 'TokenMixin',69    'ClientAuthentication',70    'AuthorizationServer',71    'ResourceProtector',72    'TokenValidator',73    'TokenEndpoint',74    'BaseGrant',75    'AuthorizationEndpointMixin',76    'TokenEndpointMixin',77    'AuthorizationCodeGrant',78    'ImplicitGrant',79    'ResourceOwnerPasswordCredentialsGrant',80    'ClientCredentialsGrant',81    'RefreshTokenGrant',82    'scope_to_list', 'list_to_scope',83]84 
codekingpro/portable-devtools · Team Ai