mckinsey / vizro

Vizro is a toolkit for creating modular data visualization applications.
https://vizro.readthedocs.io/en/stable/
Apache License 2.0
2.49k stars 112 forks source link

How to create user for vizro toolkit dashboard #316

Open KathirvelPriya opened 5 months ago

KathirvelPriya commented 5 months ago

Question

How to create login user for vizro toolkit dashboard?

Code/Examples

No response

Other information

No response

Which package?

vizro

Package version

No response

Python version

python3.8

OS

ubuntu

Code of Conduct

antonymilne commented 5 months ago

Hi @KathirvelPriya, this functionality is not integrated into Vizro although it is a possibility for the future - see https://github.com/mckinsey/vizro/issues/71.

What is already possible it to use external authentication mechanisms. As in my answer to your other question, the question here basically becomes "how to integrate authentication into a Dash app". There's lots of possibilities there (see Dash docs), but your best bet is probably to use something that works with Flask like flask-login and integrate your Vizro app into a Flask app. See e.g. https://dev.to/naderelshehabi/securing-plotly-dash-using-flask-login-4ia2, https://github.com/RafaelMiquelino/dash-flask-login, https://community.plotly.com/t/dash-app-pages-with-flask-login-flow-using-flask/69507/64.