marcodlk
marcodlk
Mmarimo
Created by coltone24 on 1/13/2025 in #help-support
Accessing Middleware Values in a Marimo Cell
It does, thanks - dict of headers would work great. Also like the structured user info and get_token() to streamline the more common use cases
11 replies
Mmarimo
Created by coltone24 on 1/13/2025 in #help-support
Accessing Middleware Values in a Marimo Cell
Specifically in my case, to parse the keycloak auth token for the user info. Thinking that exposing headers, or at least as an opt-in, would afford the developer full flexibility when mounting marimo in a FastAPI app. Is there a specific format or set of formats you’d be looking to support for parsing user info in the headers?
11 replies
Mmarimo
Created by coltone24 on 1/13/2025 in #help-support
Accessing Middleware Values in a Marimo Cell
@Myles Scolnick is there a reason the request headers can’t easily be exposed from within the Marimo cell, via mo.app_meta() or other method? I am realizing this is a hard requirement for an app I’m on the hook to deploy next week, and I’d like to hack a way around it. If there is any tips you may be able to provide, it’d v appreciated!
11 replies