Clerk updates#13
Conversation
…r protected for easier parsing of layout protections
There was a problem hiding this comment.
Pull request overview
Updates Clerk integration and related tooling/test fixtures in dash_auth_plus, plus a small enhancement to group-based protection.
Changes:
- Adjust ClerkAuth client-side initialization/logout behavior and reduce repeated redirect-uri computation.
- Add async support to
group_protection.protected(...)for coroutine functions. - Tighten dev dependency bounds and make minor formatting/whitespace/build-script tweaks.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
dash_auth_plus/clerk_auth.py |
Updates ClerkAuth init script/logout behavior and refactors redirect handling. |
dash_auth_plus/group_protection.py |
Adds an async wrapper path to protected(...). |
dev-requirements.txt |
Adds upper bounds for Dash testing dependency and Black. |
dash_auth_plus/package-info.json |
Adjusts build copy command to flatten output. |
dash_auth_plus/oidc_auth.py |
Formatting-only changes to error/page string construction. |
dash_auth_plus/public_routes.py |
Removes extra blank lines (formatting-only). |
tests/test_clerk_auth.py |
Formatting-only change in test app layout. |
tests/test_basic_auth_integration.py |
Removes a stray blank line (formatting-only). |
Comments suppressed due to low confidence (1)
dash_auth_plus/clerk_auth.py:189
self.auth_protect_layouts_kwargsis assigned but never read anywhere in this module (the value is already passed toAuth.__init__). Keeping an unused instance attribute makes the behavior harder to follow and can become stale. Either remove this assignment, or use the attribute instead of passing the kwargs through separately (but avoid storing it if it’s not needed).
self.log_signins = log_signins
self.logout_page = logout_page
self._user_groups = user_groups
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: BSd3v <82055130+BSd3v@users.noreply.github.com>
Add async test coverage for `protected()` decorator
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…y for comparrison
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: BSd3v <82055130+BSd3v@users.noreply.github.com>
…c-adb4-c8efdc612a1e Use cached page paths/adapter in `_redirect_test`
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| signature = hashlib.sha256(repr(registry).encode()).hexdigest() | ||
| cache_key = f"dash_page_registry_{signature}" | ||
|
|
||
| page_paths = page_templates = None | ||
| if cache is not None: |
There was a problem hiding this comment.
Does that defeat the purpose of the cache?
… page registry data Co-authored-by: BSd3v <82055130+BSd3v@users.noreply.github.com>
…a-a864-d116ca59b92f Replace unstable disk cache with in-process cache for page registry data
No description provided.