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:
@@ -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>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user