Skip to content

Conversation

@RenaudLN
Copy link
Contributor

@RenaudLN RenaudLN commented Aug 11, 2023

Allow users to whitelist routes:

  • Routes should follow the Flask syntax
  • Due to Dash's internals, a number of base routes need to be whitelisted as well (js dependencies, layout route...)
  • Due to Dash's internals, whitelisting Flask routes is not enough: the _dash-update-component route responsible for browser navigation needs to be whitelisted for the relevant routes.

The PR shows an example of how to use the feature in the updated Readme.

@RenaudLN
Copy link
Contributor Author

Hey @alexcjohnson, should be ready to go!

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃 Great! I'll merge and create v2.2.0 🎉

@alexcjohnson alexcjohnson merged commit aa70aec into plotly:main Feb 5, 2024
@alexcjohnson
Copy link
Collaborator

v2.2.0 is released. Thanks for the contribution @RenaudLN!
https://pypi.org/project/dash-auth/
https://github.com/plotly/dash-auth/releases/tag/v2.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants