Skip to content

Commit 27cd248

Browse files
chore(web): Add dialog when no auth provider is configured (#744)
1 parent e4d3a98 commit 27cd248

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
- Added dialog when no authentication provider is configured. [#744](https://github.com/sourcebot-dev/sourcebot/pull/744)
12+
1013
## [4.10.11] - 2026-01-16
1114

1215
### Fixed

packages/web/src/app/components/authMethodSelector.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { DividerSet } from "@/app/components/dividerSet";
99
import { ProviderButton } from "@/app/components/providerButton";
1010
import { AuthSecurityNotice } from "@/app/components/authSecurityNotice";
1111
import type { IdentityProviderMetadata } from "@/lib/identityProviders";
12+
import Link from "next/link";
1213

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

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

0 commit comments

Comments
 (0)