From b80a2109e6f9a2cc421ba6e3b6c1989732e874c8 Mon Sep 17 00:00:00 2001 From: Scott Black Date: Wed, 10 Jan 2024 10:11:22 -0700 Subject: [PATCH] associate user accounts by email to allow multiple routers --- app/api/subsetter/main.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/api/subsetter/main.py b/app/api/subsetter/main.py index 86e9310c..a25d7e34 100644 --- a/app/api/subsetter/main.py +++ b/app/api/subsetter/main.py @@ -57,7 +57,11 @@ app.include_router( fastapi_users.get_oauth_router( - cuahsi_oauth_client, auth_backend, SECRET, redirect_url=get_settings().oauth2_redirect_url + cuahsi_oauth_client, + auth_backend, + SECRET, + redirect_url=get_settings().oauth2_redirect_url, + associate_by_email=True, ), prefix="/auth/cuahsi", tags=["auth"], @@ -68,7 +72,8 @@ cuahsi_oauth_client, auth_backend, SECRET, - redirect_url=get_settings().vite_oauth2_redirect_url + redirect_url=get_settings().vite_oauth2_redirect_url, + associate_by_email=True, ), prefix="/auth/front", tags=["auth"],