You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import dash_enterprise_auth as auth
auth.dev(
development=True, # or os.environ.get("DASH_ENTERPRISE_ENV", "WORKSPACE")=="WORKSPACE"
test_users=[
{"username":"john", "groups":["/marketing"]},
{"username":"lisa", "groups":["/marketing", "/interns"]},
{"username":"tim", "groups":["/hr", "/interns"]},
],
active_user="lisa"
)
# when user runs auth.get_user_data(), something like this gets run in the background:
# https://github.com/plotly/dash-enterprise-auth/blob/main/dash_enterprise_auth/__init__.py#L104
if auth.dev.get("development"):
return auth.dev.active_user
#return auth.dev.test_users.get(auth.dev.active_user)
People who have requested this:
ZD ticket 15992
ZD ticket 16214
The text was updated successfully, but these errors were encountered:
Something like this:
People who have requested this:
The text was updated successfully, but these errors were encountered: