Authentication for apps deployed to Dash Enterprise
Learn more at https://dash.plotly.com/dash-enterprise/app-authentication
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()