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:
@@ -55,7 +55,11 @@ func testServerDB(t *testing.T) (*httptest.Server, *db.DB) {
|
||||
t.Fatal(e)
|
||||
}
|
||||
q := u.Query()
|
||||
q.Set("search_path", schema)
|
||||
// The pg_trgm extension is installed in public by the database init
|
||||
// script. The test schema owns the app tables, but PostgreSQL must also
|
||||
// see public to resolve gin_trgm_ops when schema.sql builds the trigram
|
||||
// indexes. Test schemas still take precedence for every app table.
|
||||
q.Set("search_path", schema+",public")
|
||||
u.RawQuery = q.Encode()
|
||||
d, e := db.New(&config.Config{DatabaseURL: u.String()})
|
||||
if e != nil {
|
||||
|
||||
Reference in New Issue
Block a user