From 56644c553e665274957fb22b4db9ea2e0e47d6d3 Mon Sep 17 00:00:00 2001 From: wikiselev Date: Tue, 30 Jan 2024 10:31:08 +0000 Subject: [PATCH] fix errors due to updated version of pydantic --- app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 5922f56..1f30e82 100644 --- a/app.py +++ b/app.py @@ -9,14 +9,16 @@ from fastapi.templating import Jinja2Templates from fastapi_msal import MSALAuthorization, MSALClientConfig from fastapi_msal.models import AuthToken +from pydantic import ConfigDict class AppConfig(MSALClientConfig): + model_config = ConfigDict(extra='allow') # You can find more Microsoft Graph API endpoints from Graph Explorer # https://developer.microsoft.com/en-us/graph/graph-explorer endpoint: str = "https://graph.microsoft.com/v1.0/users" # This resource requires no admin consent - login_path = "/login" # default is '/_login_route' - logout_path = "/logout" # default is '/_logout_route' + login_path: str = "/login" # default is '/_login_route' + logout_path: str = "/logout" # default is '/_logout_route' config = AppConfig(_env_file="app_config.env")