mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-12-14 22:35:47 -07:00
Fixed Engine-based Authentication APIs
This commit is contained in:
@@ -43,7 +43,7 @@ def _build_runtime_config() -> Dict[str, Any]:
|
||||
if api_groups_override:
|
||||
api_groups: Any = api_groups_override
|
||||
else:
|
||||
api_groups = ("core", "tokens", "enrollment")
|
||||
api_groups = ("core", "auth", "tokens", "enrollment")
|
||||
|
||||
return {
|
||||
"HOST": os.environ.get("BOREALIS_ENGINE_HOST", DEFAULT_HOST),
|
||||
|
||||
@@ -208,6 +208,8 @@ def _parse_api_groups(raw: Optional[Any]) -> Tuple[str, ...]:
|
||||
else:
|
||||
return tuple()
|
||||
cleaned = [part.lower() for part in parts if part]
|
||||
if "auth" not in cleaned:
|
||||
cleaned.insert(0, "auth")
|
||||
return tuple(dict.fromkeys(cleaned))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user