mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-03-17 22:36:17 +00:00
add initial implementation of auth gateway with models, routes, and session management
This commit is contained in:
13
containers/auth-gateway/auth_gateway/models/runtime.py
Normal file
13
containers/auth-gateway/auth_gateway/models/runtime.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from auth_gateway.models.applications import ApplicationModel
|
||||
from auth_gateway.models.auth import AuthMethodModel, GroupModel, PolicyModel, UserModel
|
||||
from auth_gateway.models.routes import AppRoutesModel
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class RuntimeConfig(BaseModel):
|
||||
applications: dict[str, ApplicationModel] = Field(default_factory=dict)
|
||||
routes_by_app: dict[str, AppRoutesModel] = Field(default_factory=dict)
|
||||
auth_methods: dict[str, AuthMethodModel] = Field(default_factory=dict)
|
||||
users: dict[str, UserModel] = Field(default_factory=dict)
|
||||
groups: dict[str, GroupModel] = Field(default_factory=dict)
|
||||
policies: dict[str, PolicyModel] = Field(default_factory=dict)
|
||||
Reference in New Issue
Block a user