plotly / dash-enterprise-auth

Python Auth Client for Dash Enterprise
MIT License
4 stars 2 forks source link
plotly-dash

Dash Enterprise Auth

Authentication for apps deployed to Dash Enterprise

Learn more at https://dash.plotly.com/dash-enterprise/app-authentication

Maintained by Plotly
import dash_enterprise_auth as auth

@callback(...)
def private_data(...):
    username = auth.get_username()
    if username:
        return get_view_for_user(username)
    else:
        return public_view()