|
25 | 25 |
|
26 | 26 | import contextlib |
27 | 27 |
|
| 28 | +from vgi_rpc.http._bearer import bearer_authenticate, bearer_authenticate_static, chain_authenticate |
28 | 29 | from vgi_rpc.http._client import ( |
29 | 30 | HttpServerCapabilities, |
30 | 31 | HttpStreamSession, |
|
45 | 46 | UPLOAD_URL_HEADER, |
46 | 47 | _RpcHttpError, |
47 | 48 | ) |
48 | | -from vgi_rpc.http._bearer import bearer_authenticate, bearer_authenticate_static, chain_authenticate |
| 49 | +from vgi_rpc.http._mtls import XfccElement, mtls_authenticate_xfcc |
49 | 50 | from vgi_rpc.http._oauth import OAuthResourceMetadata |
50 | 51 | from vgi_rpc.http._retry import HttpRetryConfig, HttpTransientError |
51 | | - |
52 | | -with contextlib.suppress(ImportError): |
53 | | - from vgi_rpc.http._oauth_jwt import jwt_authenticate # noqa: F401 |
54 | | -with contextlib.suppress(ImportError): |
55 | | - from vgi_rpc.http._mtls import mtls_authenticate, mtls_authenticate_fingerprint, mtls_authenticate_subject # noqa: F401 |
56 | | -from vgi_rpc.http._mtls import XfccElement, mtls_authenticate_xfcc # noqa: F401 |
57 | 52 | from vgi_rpc.http._server import make_wsgi_app, serve_http |
58 | 53 | from vgi_rpc.http._testing import ( |
59 | 54 | _SyncTestClient, |
60 | 55 | _SyncTestResponse, |
61 | 56 | make_sync_client, |
62 | 57 | ) |
63 | 58 |
|
| 59 | +with contextlib.suppress(ImportError): |
| 60 | + from vgi_rpc.http._oauth_jwt import jwt_authenticate # noqa: F401 |
| 61 | +with contextlib.suppress(ImportError): |
| 62 | + from vgi_rpc.http._mtls import ( # noqa: F401 |
| 63 | + mtls_authenticate, |
| 64 | + mtls_authenticate_fingerprint, |
| 65 | + mtls_authenticate_subject, |
| 66 | + ) |
| 67 | + |
64 | 68 | __all__ = [ |
65 | 69 | "bearer_authenticate", |
66 | 70 | "bearer_authenticate_static", |
|
0 commit comments