Skip to content

Conversation

@skylenet
Copy link
Member

@skylenet skylenet commented Jan 12, 2026

Summary

  • Extend /health endpoint to include config.auth.basic and config.auth.github fields indicating which authentication methods are enabled
  • Update login page to check API availability on mount and show a warning if the server is unreachable
  • Conditionally render login options based on enabled auth methods (only show username/password form if basic auth is enabled, only show GitHub button if GitHub auth is enabled)

Test plan

  • Verify /health endpoint returns auth config matching the server configuration
  • With API running: login page shows appropriate auth methods based on config
  • With API stopped: login page shows "Unable to connect to API server" warning
  • With only basic auth enabled: only username/password form is shown
  • With only GitHub auth enabled: only GitHub button is shown
  • With both enabled: both options shown with divider
  • With neither enabled: "No authentication methods configured" message shown

Extend /health endpoint to include enabled auth methods in response,
allowing the UI to conditionally show login options. The login page
now checks API availability, shows appropriate feedback when the
server is unreachable, and only displays auth methods that are enabled.
@skylenet skylenet merged commit 179f4a8 into master Jan 12, 2026
5 of 8 checks passed
@skylenet skylenet deleted the improve-login-infos branch January 12, 2026 15:47
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