Registry / security / dash-enterprise-auth

dash-enterprise-auth

JSON →
library0.2.6pypypi✓ verified 81d ago

A library providing authentication integrations for Dash apps deployed on Dash Enterprise. Current version is 0.2.6, requiring Python >=3.6. Release cadence is low; primarily maintenance.

pip install dash-enterprise-auth
INSTALL
IMPORT
SIG · DASH-ENTERPRISE-AU
D
dash-enterprise-auth
securitypythonv0.2.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Auth
from dash_enterprise_auth import get_username, get_user_data, create_logout_button
from dash_enterprise_auth import Auth

Basic Dash app using Auth.get_username() to retrieve the authenticated user.

import dash from dash import html from dash_enterprise_auth import Auth import os app = dash.Dash(__name__) username = Auth.get_username() app.layout = html.Div(f'Hello, {username or "Guest"}') if __name__ == '__main__': app.run_server(debug=True)
Debug
Known issues
gotchaAuth.get_username() returns None when running locally without authentication headers.
fix
Wrap in try/except or check for None; local development may need environment variable DASH_USERNAME set.
affects: all
gotchaThis library only works when Dash app is deployed behind Dash Enterprise's authentication proxy; it does not perform authentication itself.
fix
Ensure the app is deployed on Dash Enterprise with authentication enabled; for local testing, set environment variables like DASH_USERNAME manually.
affects: all
gotchaAuth class methods (get_username, get_user, get_groups) may raise exceptions if the app is not behind the proxy.
fix
Use try/except or check for None; see quickstart for pattern.
affects: all
Upgrade
Version history
0.2.6latest on PyPI · released May 21, 2026
Audit
Dependencies
dashrequiredCore dependency; auth is used within Dash apps
Agent activity
12 hits · last 30 days
node
12
Resources
dash-enterprise-auth — pip install dash-enterprise-auth · libregistry