Skip to content

feat(portal-plugin-dashboard): use SafeAuthenticated guard in routes - #1154

Merged
pcfreak30 merged 1 commit into
developfrom
feat/portal-plugin-dashboard-safe-auth
Sep 4, 2026
Merged

feat(portal-plugin-dashboard): use SafeAuthenticated guard in routes#1154
pcfreak30 merged 1 commit into
developfrom
feat/portal-plugin-dashboard-safe-auth

Conversation

@pcfreak30

@pcfreak30 pcfreak30 commented Sep 4, 2026

Copy link
Copy Markdown
Member

Switches the dashboard plugin's account, dashboard, and operations
routes from the legacy @refinedev/core Authenticated guard to
SafeAuthenticated from portal-framework-auth, which reads the to
query param once and sanitizes the redirect target before navigating.


Summary

This pull request updates the authentication guard used in the dashboard plugin's routing to use the SafeAuthenticated component from @lumeweb/portal-framework-auth instead of the generic Authenticated component from @refinedev/core.

Changes

  • Replaced authentication wrapper across three routes:
    • account.layout.tsx
    • dashboard.tsx
    • operations.tsx
  • Removed the v3LegacyAuthProviderCompatible prop from all usages.
  • Imported SafeAuthenticated from @lumeweb/portal-framework-auth in favor of the previous Refine import.

Impact

  • Routes now leverage a safer, more robust authentication guard that is better suited for the portal’s authentication flow.
  • Eliminates reliance on the legacy compatibility flag, aligning the plugin with current framework authentication standards.
  • Improves consistency and security across the account, dashboard, and operations views.

- replace legacy @refinedev/core Authenticated on account/dashboard/
  operations layouts with the auth package's SafeAuthenticated, which
  reads the to param once and sanitizes the redirect target
@kody-ai

kody-ai Bot commented Sep 4, 2026

Copy link
Copy Markdown

Kody Review Complete

Great news! 🎉
No issues were found that match your current review configurations.

Keep up the excellent work! 🚀

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug
Performance
Security
Business Logic

Access your configuration settings here.

@pcfreak30
pcfreak30 merged commit 51de6fa into develop Sep 4, 2026
4 checks passed
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.

1 participant