Skip to content

Add support for non-flask backends (websockets/FastAPI, Quart, etc) #59

Description

@celia-lm

Websockets don’t work with flask-based features since the app backend changes from FlaskDashServer to FastAPIDashServer (or QuartDashServer): https://github.com/plotly/dash/blob/dev/dash/backends/__init__.py#L7-L11

Because of this, dash-enterprise-auth methods like get_user_data() return an empty dict ({}) and username is None, since the library relies on flask request context and other flask features (example: https://github.com/plotly/dash-enterprise-auth/blob/main/dash_enterprise_auth/__init__.py#L157-L160)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions