Skip to content

Commit f1e3e48

Browse files
authored
Merge pull request #50 from plotly/logout-button-check
Logout button removed check
2 parents 325bcaf + 62f2f75 commit f1e3e48

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
All notable changes to `dash-enterprise-auth` will be documented in this file.
33
This project adheres to [Semantic Versioning](https://semver.org/).
44

5+
## [0.2.5] - 2025-03-11
6+
### Fixed
7+
- Fix dash 3.0 removal of dcc.LogoutButton.
8+
59
## [0.2.4] - 2024-12-02
610
### Fixed
711
- Dash enteprise auth methods are now functional in the jupyter notebook context within Dash Workspaces via DASH_USER_TOKEN. [#44](https://github.com/plotly/dash-enterprise-auth/pull/44)

dash_enterprise_auth/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def create_logout_button(label="Logout", style=None):
7676
if not logout_url:
7777
raise RuntimeError("DASH_LOGOUT_URL was not set in the environment.")
7878

79-
if not _os.getenv("DASH_JWKS_URL"):
79+
if not _os.getenv("DASH_JWKS_URL") and hasattr(_dcc, "LogoutButton"):
8080
return _dcc.LogoutButton(
8181
logout_url=logout_url,
8282
label=label,

dash_enterprise_auth/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.2.4'
1+
__version__ = '0.2.5'

0 commit comments

Comments
 (0)