Using use_scope
for user authorization and more
#727
Replies: 2 comments 6 replies
-
Glad to hear IDOM integration has been successful for you! Let us know how stylesheet integration goes with FastAPI. I've been putting some more thought into that recently and trying to consider how we can do that better in a cross-framework fashion. On a tangent, if you think of anything else we could do better, definitely let us know! Also just a heads up, |
Beta Was this translation helpful? Give feedback.
-
@Archmonger let me put a few words on this as @liberty-rising and I have been working on this
So far, the biggest improvement opportunities I see on my end, since you already delivered the great
|
Beta Was this translation helpful? Give feedback.
-
For our IDOM application timeflow, our team has been able to successfully implement user authorization through the
use_scope
method.Our application is ran using FastAPI as the server (where we embed IDOM for the frontend, FastAPI for backend), thus we imported the
use_scope
method fromidom.server.fastapi
. Using FastAPI'sRequest
object, we were able to pass various keywords and values into the session. Once this was done, usinguse_scope
returned these values whenever it was called, from wherever in the application. This allowed us to hold the roles of users, and authorize them based on their role in the company.Our next plans are to pass the CSS styles sheet into the scope so that the CSS can be loaded faster.
Beta Was this translation helpful? Give feedback.
All reactions