Skip to content

Commit

Permalink
associate user accounts by email to allow multiple routers
Browse files Browse the repository at this point in the history
  • Loading branch information
sblack-usu committed Jan 10, 2024
1 parent 166ad58 commit b80a210
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/api/subsetter/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -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"],
Expand Down

0 comments on commit b80a210

Please sign in to comment.