codekingpro/portable-devtools
114k
1from authlib.common.errors import AuthlibBaseError2 3 4class OAuthError(AuthlibBaseError):5 error = 'oauth_error'6 7 8class MissingRequestTokenError(OAuthError):9 error = 'missing_request_token'10 11 12class MissingTokenError(OAuthError):13 error = 'missing_token'14 15 16class TokenExpiredError(OAuthError):17 error = 'token_expired'18 19 20class InvalidTokenError(OAuthError):21 error = 'token_invalid'22 23 24class UnsupportedTokenTypeError(OAuthError):25 error = 'unsupported_token_type'26 27 28class MismatchingStateError(OAuthError):29 error = 'mismatching_state'30 description = 'CSRF Warning! State not equal in request and response.'31 