Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed
- Added dialog when no authentication provider is configured. [#744](https://github.com/sourcebot-dev/sourcebot/pull/744)

## [4.10.11] - 2026-01-16

### Fixed
Expand Down
10 changes: 10 additions & 0 deletions packages/web/src/app/components/authMethodSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { DividerSet } from "@/app/components/dividerSet";
import { ProviderButton } from "@/app/components/providerButton";
import { AuthSecurityNotice } from "@/app/components/authSecurityNotice";
import type { IdentityProviderMetadata } from "@/lib/identityProviders";
import Link from "next/link";

interface AuthMethodSelectorProps {
providers: IdentityProviderMetadata[];
Expand Down Expand Up @@ -44,6 +45,15 @@ export const AuthMethodSelector = ({
const hasCredentials = providers.some(p => p.purpose === "sso" && p.id === "credentials");
const hasMagicLink = providers.some(p => p.purpose === "sso" && p.id === "nodemailer");

if (oauthProviders.length === 0 && !hasCredentials && !hasMagicLink) {
return (
<div className="flex flex-col items-center justify-center w-full gap-2">
<p className="text-center font-medium">No authentication methods available. Please contact your administrator to configure authentication.</p>
<Link href="https://docs.sourcebot.dev/docs/configuration/auth/overview" target="_blank" rel="noopener" className="text-link hover:underline">Learn more</Link>
</div>
)
}

return (
<>
<AuthSecurityNotice closable={securityNoticeClosable} />
Expand Down