feat(auth): add local and OIDC management to tht

This commit is contained in:
2026-08-16 19:23:30 +02:00
parent d17ad0e95b
commit 9646ae09a0
15 changed files with 992 additions and 13 deletions
+8
View File
@@ -11,6 +11,7 @@ import (
"testing"
"github.com/aritmolab/thothii/tools/tht/internal/config"
"github.com/aritmolab/thothii/tools/tht/internal/safeio"
"github.com/aritmolab/thothii/tools/tht/internal/testsupport"
)
@@ -48,6 +49,13 @@ func TestEnsureFilesCreatesDiscoverableConfigurationInProjectWithSpaces(t *testi
t.Errorf("generated file %s has permissions %o, want owner-only", path, info.Mode().Perm())
}
}
installation, err := config.Load(result.DescriptorPath)
if err != nil {
t.Fatal(err)
}
if err := safeio.ValidatePrivateDirectory(installation.AuthenticationDirectory()); err != nil {
t.Fatalf("authentication directory is not private: %v", err)
}
descriptor, err := os.ReadFile(result.DescriptorPath)
if err != nil {