massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / oauthlib / oauthlib / oauth2 / rfc6749 / endpoints / pre_configured.pyi
1 from typing import Any
2
3 from .authorization import AuthorizationEndpoint as AuthorizationEndpoint
4 from .introspect import IntrospectEndpoint as IntrospectEndpoint
5 from .resource import ResourceEndpoint as ResourceEndpoint
6 from .revocation import RevocationEndpoint as RevocationEndpoint
7 from .token import TokenEndpoint as TokenEndpoint
8
9 class Server(AuthorizationEndpoint, IntrospectEndpoint, TokenEndpoint, ResourceEndpoint, RevocationEndpoint):
10     auth_grant: Any
11     implicit_grant: Any
12     password_grant: Any
13     credentials_grant: Any
14     refresh_grant: Any
15     bearer: Any
16     def __init__(
17         self,
18         request_validator,
19         token_expires_in: Any | None = ...,
20         token_generator: Any | None = ...,
21         refresh_token_generator: Any | None = ...,
22         *args,
23         **kwargs,
24     ) -> None: ...
25
26 class WebApplicationServer(AuthorizationEndpoint, IntrospectEndpoint, TokenEndpoint, ResourceEndpoint, RevocationEndpoint):
27     auth_grant: Any
28     refresh_grant: Any
29     bearer: Any
30     def __init__(
31         self,
32         request_validator,
33         token_generator: Any | None = ...,
34         token_expires_in: Any | None = ...,
35         refresh_token_generator: Any | None = ...,
36         **kwargs,
37     ) -> None: ...
38
39 class MobileApplicationServer(AuthorizationEndpoint, IntrospectEndpoint, ResourceEndpoint, RevocationEndpoint):
40     implicit_grant: Any
41     bearer: Any
42     def __init__(
43         self,
44         request_validator,
45         token_generator: Any | None = ...,
46         token_expires_in: Any | None = ...,
47         refresh_token_generator: Any | None = ...,
48         **kwargs,
49     ) -> None: ...
50
51 class LegacyApplicationServer(TokenEndpoint, IntrospectEndpoint, ResourceEndpoint, RevocationEndpoint):
52     password_grant: Any
53     refresh_grant: Any
54     bearer: Any
55     def __init__(
56         self,
57         request_validator,
58         token_generator: Any | None = ...,
59         token_expires_in: Any | None = ...,
60         refresh_token_generator: Any | None = ...,
61         **kwargs,
62     ) -> None: ...
63
64 class BackendApplicationServer(TokenEndpoint, IntrospectEndpoint, ResourceEndpoint, RevocationEndpoint):
65     credentials_grant: Any
66     bearer: Any
67     def __init__(
68         self,
69         request_validator,
70         token_generator: Any | None = ...,
71         token_expires_in: Any | None = ...,
72         refresh_token_generator: Any | None = ...,
73         **kwargs,
74     ) -> None: ...