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
+7 -3
View File
@@ -1,11 +1,15 @@
package oidc
// Provider is the Authelia OIDC sign-in provider.
// Provider is the Authelia OIDC status/scaffold package.
//
// Porting guide 3.1: the Authelia provider is registered only when
// Porting guide 3.1: the Authelia provider is registered in NextAuth only when
// getOidcStatus().enabled. Scope "openid profile email". Profile mapping:
// id=sub, name = name ?? preferred_username ?? sub, email, image = picture.
// It links to an existing account with the same email.
//
// The browser OIDC code flow (authorization code exchange, token endpoint,
// userinfo) runs in the trusted Next.js server. These Go routes remain 501
// stubs for compatibility; the actual local identity exchange lives in
// internal/auth/oidc_provision.go. Do not implement a second OIDC client here.
//
// STUB: the full OIDC code flow (authorization code exchange, token endpoint,
// userinfo) is NOT implemented in Go — it will be driven by the client, which