Skip to content

Speed up unauthenticated login redirect#302

Merged
dkhalife merged 2 commits intomainfrom
redirect_on_backend
Apr 10, 2026
Merged

Speed up unauthenticated login redirect#302
dkhalife merged 2 commits intomainfrom
redirect_on_backend

Conversation

@dkhalife
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings April 10, 2026 05:11
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 10, 2026

Codecov Report

❌ Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
apiserver/frontend/handler.go 0.00% 12 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the authentication entry/redirect flow between the React frontend (MSAL) and the Go static frontend handler to land users on /login more directly.

Changes:

  • Changed MSAL redirectUri to return to /login instead of the site root.
  • Added backend “public path” handling and a redirect-to-/login behavior for unknown routes (NoRoute).
Show a summary per file
File Description
frontend/src/utils/msal.ts Adjusts MSAL redirect target to /login to centralize auth return handling.
apiserver/frontend/handler.go Adds public-path detection and redirects non-public NoRoute requests to /login.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 2

Comment thread apiserver/frontend/handler.go Outdated
Comment thread apiserver/frontend/handler.go
@dkhalife dkhalife merged commit 0ed7e5f into main Apr 10, 2026
7 of 8 checks passed
@dkhalife dkhalife deleted the redirect_on_backend branch April 10, 2026 05:28
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.

2 participants