Integrate Fief into existing FastAPI app or run Fief as a separate app? #325
-
I have an existing Vue3/FastAPI app. Is the strategy generally to combine the existing FastAPI app endpoints and Fief endpoints together into a single FastAPI backend instance? Edit
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hail, @kielerrr 👋 Welcome to Fief's kingdom! Our team will get back to you very soon to help. In the meantime, take a minute to star our repository ⭐️ Farewell! |
Beta Was this translation helpful? Give feedback.
-
Hi @kielerrr 👋 That's actually a very interesting question 😄 As you guessed, Fief is designed to be run as a standalone app (would I dare to say like a "microservice") running alongside your own apps. That said, now we're currently re-architecturing the app to drop multiple workspaces support (#323), and since Fief is a pure FastAPI/ASGI app, I also think it will be possible to mount it directly into another FastAPI/ASGI app so everything runs inside the same process. That's not a reality right now, but I think I'll document this use-case when it becomes possible. |
Beta Was this translation helpful? Give feedback.
Hi @kielerrr 👋
That's actually a very interesting question 😄
As you guessed, Fief is designed to be run as a standalone app (would I dare to say like a "microservice") running alongside your own apps.
That said, now we're currently re-architecturing the app to drop multiple workspaces support (#323), and since Fief is a pure FastAPI/ASGI app, I also think it will be possible to mount it directly into another FastAPI/ASGI app so everything runs inside the same process. That's not a reality right now, but I think I'll document this use-case when it becomes possible.