feat(auth): add BankID OAuth provider

This commit is contained in:
2025-10-11 21:16:53 +02:00
parent 32764ab1b0
commit a91aea805f
5 changed files with 107 additions and 4 deletions

View File

@@ -56,6 +56,17 @@ fastApi.include_router(
tags=["auth"],
)
fastApi.include_router(
fastapi_users.get_oauth_router(
app.services.user_service.get_oauth_provider("BankID"),
auth_backend,
"SECRET",
associate_by_email=True,
),
prefix="/auth/bankid",
tags=["auth"],
)
# Liveness/root endpoint
@fastApi.get("/", include_in_schema=False)