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