Add Authelia identity bridge for NextAuth sessions
release gate / check (push) Failing after 6m40s

Keep NextAuth as the OIDC/session layer and add a trusted Go provisioning endpoint that maps verified Authelia subjects to local users. Existing password accounts require explicit admin linking; new users are provisioned without a password. Enable the Authelia login path and update docs. Also fix test schema search_path so pg_trgm opclasses resolve.
This commit is contained in:
Andrew S Erwin
2026-10-22 12:39:39 -05:00
parent d870eece1e
commit c432ff57e9
16 changed files with 796 additions and 150 deletions
+3 -6
View File
@@ -10,9 +10,6 @@ import { toast } from 'sonner'
import { useRouter } from 'next/navigation'
export function LoginClient({ oidcEnabled }: { oidcEnabled: boolean }) {
// Client-owned integration point. Keep disabled until verified Authelia
// identities are mapped to Go users in auth.ts's sign-in callback.
const oidcReady = false
const [email, setEmail] = useState('')
const [password, setPassword] = useState('')
const [loading, setLoading] = useState(false)
@@ -59,14 +56,14 @@ export function LoginClient({ oidcEnabled }: { oidcEnabled: boolean }) {
className="w-full gap-2"
size="lg"
variant="default"
disabled={!oidcEnabled || !oidcReady}
disabled={!oidcEnabled}
>
<Shield className="h-5 w-5" />
Sign in with Authelia
</Button>
{(!oidcEnabled || !oidcReady) && (
{!oidcEnabled && (
<p className="text-center text-xs text-muted-foreground -mt-2">
Authelia single sign-on awaits client integration. Use email below.
Authelia single sign-on is not configured. Use email below.
</p>
)}