Replies: 1 comment
-
If you go deep, of course, you can 🦾. The ❓ question is how deep you should go. You can implement your own middleware replicating the existing authentication flow and mount it to your sub app.
Doesn't NiceGUI's Request object inherit Starlette/FastAPI Request object? If yes, you should be able to access |
Beta Was this translation helpful? Give feedback.
-
Question
I want to create an admin sub page for my website. Can I use the fastapi/starlette session cookie for authentication?
Now the
request
object refers to the nicegui request. Is there a way to access to the session cookie of the outer fastapi app? Read-only would be good enough in my case. I can see the cookie in the upgrade request, but have not found a way to access it.Beta Was this translation helpful? Give feedback.
All reactions