Would you recommend this to integrate with FastAPI or dash/plotly for similar application?
In general with FastAPI you can integrate altair to generate your vega-lite json as a response to an API request taking care of authentication and authorization in FastAPI (either with JWT token or other schemes like oauth2).