File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99import urllib .parse
1010from functools import lru_cache , partial
1111
12+ from bluesky_authentication .protocols import ExternalAuthenticator , InternalAuthenticator
1213from bluesky_queueserver .manager .comms import validate_zmq_key
1314from bluesky_queueserver_api .zmq .aio import REManagerAPI
1415from fastapi import APIRouter , FastAPI , Request , Response
1516from fastapi .middleware .cors import CORSMiddleware
1617from fastapi .openapi .utils import get_openapi
17- from bluesky_authentication .protocols import ExternalAuthenticator , InternalAuthenticator
1818
1919from .console_output import CollectPublishedConsoleOutput , ConsoleOutputStream , SystemInfoStream
2020from .core import PatchedStreamingResponse
Original file line number Diff line number Diff line change 11import warnings
22
3-
4- warnings .warn (
5- "Importing authenticators from 'bluesky_httpserver.authenticators' is deprecated "
6- "and will be removed in a future release. Use 'bluesky_authentication.authenticators' "
7- "and 'bluesky_authentication.protocols' instead." ,
8- DeprecationWarning ,
9- stacklevel = 2 ,
10- )
11-
123from bluesky_authentication .authenticators import ( # noqa: F401
134 DictionaryAuthenticator ,
145 DummyAuthenticator ,
2516 UserSessionState ,
2617)
2718
19+ warnings .warn (
20+ "Importing authenticators from 'bluesky_httpserver.authenticators' is deprecated "
21+ "and will be removed in a future release. Use 'bluesky_authentication.authenticators' "
22+ "and 'bluesky_authentication.protocols' instead." ,
23+ DeprecationWarning ,
24+ stacklevel = 2 ,
25+ )
26+
2827__all__ = [
2928 "DictionaryAuthenticator" ,
3029 "DummyAuthenticator" ,
You can’t perform that action at this time.
0 commit comments