--- id: dash-auth version: "2.3.0" license: MIT license_treatment: permissive maintenance: dormant --- # dash-auth — Dash Authorization Package. License: permissive · Maintenance: dormant · Downloads: 122.3K/mo ## What it is and what it does dash-auth is an authentication layer for Plotly Dash applications that integrates HTTP Basic Authentication and OpenID Connect (OIDC) login flows. It wraps your Dash app with login enforcement, allowing you to restrict access by username/password or delegate to an external identity provider. The package sits on top of dash, flask, and werkzeug, intercepting requests before they reach your Dash callbacks and layouts. You can whitelist public routes (e.g., a landing page) and use decorators like `protected_callback` and `protected` to guard specific parts of your app. It also supports user groups—you can assign users to groups and check group membership in callbacks to implement role-based access control. For OIDC, you register one or more identity providers and the package handles the OAuth2 redirect flow automatically. Use it for: - Restrict a Dash dashboard to authenticated users with a simple username/password dictionary or custom auth function. - Delegate login to an enterprise identity provider (e.g., Okta, Azure AD) via OIDC without building OAuth2 yourself. - Whitelist a public landing page while protecting member-only analytics or reports behind login. - Implement role-based access by assigning users to groups and checking group membership in callbacks. - Protect individual callbacks or page sections so only authenticated users with the right group can trigger them. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Adds HTTP Basic Authentication and OpenID Connect (OIDC) login to Dash applications, with support for public routes, user groups, and protected callbacks. Yes, if you need straightforward authentication for a Dash app and can tolerate dormant maintenance. The package is stable and has no known vulnerabilities, but expect no active updates. Choose it for simple internal dashboards or when OIDC integration saves you from building OAuth2 yourself; avoid it if you need active support or frequent security patches. ## Install pip install dash-auth uv add dash-auth poetry add dash-auth ## Installing dash-auth Before you install: Low install friction with pure Python dependencies (dash, flask, werkzeug). Maintenance is dormant—last release was 878 days ago—so expect no active bug fixes or feature updates, though the package is marked Production/Stable. License in practice: MIT license is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions. Quickstart: pip install dash-auth from dash import Dash from dash_auth import BasicAuth app = Dash(__name__) USER_PWD = {"username": "password"} BasicAuth(app, USER_PWD) Python 3.8 or greater is required. Verify before relying: - Whether dormant maintenance status affects real-world reliability for production Dash deployments. - How well OIDC integration handles token refresh and session expiry in long-running apps. - Performance characteristics when protecting many routes or callbacks with group-based permissions. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: dormant - Downloads: 122.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags dash authentication login, basic auth for dash apps, openid connect oidc, dash user groups permissions, dash protected routes, dash access control, web app login security, authentication, oidc, dash-framework [View on SkillFed](https://skillfed.io/packages/dash-auth) · [View on PyPI](https://pypi.org/project/dash-auth/)