Need guidance about integration with FastAPI service #326
-
|
I would need some guidance about how to integrate Fief with a FastAPI service. Also, what are the best practices and architecture patterns to consider. The way I envision the integration with Fief is: Integration paradoxes
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Hail, @ocontant 👋 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 @ocontant 👋 There are several examples and code snippets for FastAPI right here: https://docs.fief.dev/integrate/python/fastapi/ Have you tried them? It looks to me that it should answer most of your questions. |
Beta Was this translation helpful? Give feedback.

Regarding the cache mechanism, that's indeed the ideal/most correct setup. We support webhooks by the way: https://docs.fief.dev/api/webhooks/guide/
That said, I would recommend you to start simple and maybe have just a simple cache with expiration.
You can however update the values for an authenticated user with the client: https://fief-dev.github.io/fief-python/fief_client.html#Fief.update_profile