@@ -437,7 +437,7 @@ def from_file(config_file_path: Path, instrument: str = "") -> Dict[str, Machine
437437 }
438438
439439
440- class Security (BaseModel ):
440+ class ServerConfig (BaseModel ):
441441 # Database connection settings
442442 murfey_db_credentials : str
443443 sqlalchemy_pooling : bool = True
@@ -459,10 +459,10 @@ class Security(BaseModel):
459459 allow_origins : List [str ] = ["*" ] # Restrict to only certain hostnames
460460
461461
462- def security_from_file (config_file_path : Path ) -> Security :
462+ def security_from_file (config_file_path : Path ) -> ServerConfig :
463463 with open (config_file_path , "r" ) as config_stream :
464464 config = yaml .safe_load (config_stream )
465- return Security (** config )
465+ return ServerConfig (** config )
466466
467467
468468class Settings (BaseSettings ):
@@ -489,7 +489,7 @@ def get_microscope(machine_config: MachineConfig | None = None) -> str:
489489
490490
491491@lru_cache (maxsize = 1 )
492- def get_security_config () -> Security :
492+ def get_security_config () -> ServerConfig :
493493 if settings .murfey_security_configuration :
494494 return security_from_file (Path (settings .murfey_security_configuration ))
495495 if settings .murfey_machine_configuration and os .getenv ("BEAMLINE" ):
@@ -498,7 +498,7 @@ def get_security_config() -> Security:
498498 ]
499499 if machine_config .security_configuration_path :
500500 return security_from_file (machine_config .security_configuration_path )
501- return Security (
501+ return ServerConfig (
502502 session_validation = "" ,
503503 murfey_db_credentials = "" ,
504504 crypto_key = "" ,
0 commit comments