massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / oauthlib / oauthlib / openid / connect / core / exceptions.pyi
1 from typing import Any
2
3 from oauthlib.oauth2.rfc6749.errors import FatalClientError as FatalClientError, OAuth2Error as OAuth2Error
4
5 class FatalOpenIDClientError(FatalClientError): ...
6 class OpenIDClientError(OAuth2Error): ...
7
8 class InteractionRequired(OpenIDClientError):
9     error: str
10     status_code: int
11
12 class LoginRequired(OpenIDClientError):
13     error: str
14     status_code: int
15
16 class AccountSelectionRequired(OpenIDClientError):
17     error: str
18
19 class ConsentRequired(OpenIDClientError):
20     error: str
21     status_code: int
22
23 class InvalidRequestURI(OpenIDClientError):
24     error: str
25     description: str
26
27 class InvalidRequestObject(OpenIDClientError):
28     error: str
29     description: str
30
31 class RequestNotSupported(OpenIDClientError):
32     error: str
33     description: str
34
35 class RequestURINotSupported(OpenIDClientError):
36     error: str
37     description: str
38
39 class RegistrationNotSupported(OpenIDClientError):
40     error: str
41     description: str
42
43 class InvalidTokenError(OAuth2Error):
44     error: str
45     status_code: int
46     description: str
47
48 class InsufficientScopeError(OAuth2Error):
49     error: str
50     status_code: int
51     description: str
52
53 def raise_from_error(error, params: Any | None = ...) -> None: ...