You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

24 lines
770 B

from services.log import basic_logger as logger
from nicegui import app, ui
from middlewares.access_middleware import AccessLoggingMiddleware
from middlewares.auth_middleware import OIDCAuthMiddleware
# Add middlewares in order: Access logging first, then auth
app.add_middleware(AccessLoggingMiddleware)
app.add_middleware(OIDCAuthMiddleware)
# Import pages after middleware setup
from pages import main_page, auth_callback, login, subpage
def main():
logger.info(f"Starting OIDC Authentication Demo with Access Logging")
# Configure app
ui.run(
port=8080,
storage_secret='your-secret-key-change-in-production',
title='OIDC Authentication Demo',
reload=False
)
if __name__ in {"__main__", "__mp_main__"}:
main()