Skip to content

Clerk updates#13

Merged
BSd3v merged 96 commits into
mainfrom
clerk-updates
Mar 16, 2026
Merged

Clerk updates#13
BSd3v merged 96 commits into
mainfrom
clerk-updates

Conversation

@BSd3v

@BSd3v BSd3v commented Mar 4, 2026

Copy link
Copy Markdown
Owner

No description provided.

…r protected for easier parsing of layout protections

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_kwargs is assigned but never read anywhere in this module (the value is already passed to Auth.__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.

Comment thread dash_auth_plus/clerk_auth.py Outdated
Comment thread dash_auth_plus/group_protection.py Outdated
Comment thread dash_auth_plus/group_protection.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Copilot AI commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

@BSd3v I've opened a new pull request, #14, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

@BSd3v I've opened a new pull request, #15, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits March 5, 2026 11:06
Co-authored-by: BSd3v <82055130+BSd3v@users.noreply.github.com>
Add async test coverage for `protected()` decorator

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread dash_auth_plus/clerk_auth.py Outdated
Comment thread dash_auth_plus/auth.py
BSd3v and others added 2 commits March 13, 2026 17:23
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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread dash_auth_plus/auth.py Outdated
Comment thread dash_auth_plus/auth.py Outdated
Comment thread dash_auth_plus/group_protection.py
Comment thread dash_auth_plus/group_protection.py
BSd3v and others added 3 commits March 16, 2026 10:19
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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread dash_auth_plus/auth.py Outdated
Comment thread dash_auth_plus/auth.py Outdated
Comment thread dash_auth_plus/clerk_auth.py Outdated
BSd3v and others added 5 commits March 16, 2026 12:45
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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread dash_auth_plus/auth.py Outdated
Comment thread dash_auth_plus/auth.py
Comment thread dash_auth_plus/auth.py Outdated
Comment thread dash_auth_plus/clerk_auth.py Outdated
BSd3v and others added 3 commits March 16, 2026 13:33
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

@BSd3v I've opened a new pull request, #24, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 4 commits March 16, 2026 17:41
Co-authored-by: BSd3v <82055130+BSd3v@users.noreply.github.com>
…c-adb4-c8efdc612a1e

Use cached page paths/adapter in `_redirect_test`

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread dash_auth_plus/auth.py Outdated
Comment on lines +45 to +49
signature = hashlib.sha256(repr(registry).encode()).hexdigest()
cache_key = f"dash_page_registry_{signature}"

page_paths = page_templates = None
if cache is not None:

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot

Does that defeat the purpose of the cache?

Copilot AI commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

@BSd3v I've opened a new pull request, #25, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits March 16, 2026 18:32
… 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants