gaw89 / dash-flask-login

A plugin to integrate Dash and Flask-Login
MIT License
56 stars 17 forks source link

Development seems stale #3

Open radekwlsk opened 6 years ago

radekwlsk commented 6 years ago

Hey @gaw89,

Do you plan to keep working on that package? Do you need any help? I would really like to use something that brings Flask-Login functionality to Dash apps as I am doing that right now in rather weird and tricky way in routing callback:

@app.callback(
    Output('page', 'children'),
    [Input('location', 'pathname')])
def display_content(pathname: str):
    if pathname is None:
        return html.Div()
    if current_user.is_authenticated:
        page_content = ...
        return html.Div(page_content)
    else:
        login_view = ...
        return login_view

where login_view allows providing username and password for verification by pure Flask-Login.

Your solution looks much clearer and 'proper'.

gaw89 commented 6 years ago

@AfroMetal, I would love to continue working on this project. I have been crazy busy and haven't had time to do much with it though (as you can tell). You can certainly feel free to work on features you'd like to see and submit pull requests (or fork the project if you desire). In the meantime, it is totally functional and can be installed via pip install dash-flask-login. If you'd like to go with a pure Dash implementation, then you can refer to the usage_dash_flask_login.py example. The important part will be to rewrite this line so that you have access to the appropriate users in the code.

Do you have any specific questions about usage of the plugin in its current state? Are there specific features that are currently lacking which you'd like to see built?