OIDC: Add additional config options and OAuth2 API endpoints #782

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-06-26 14:05:58 +02:00
parent 7af4a1741b
commit c0ea3c79a3
24 changed files with 287 additions and 101 deletions

View File

@@ -41,6 +41,7 @@ func TestMain(m *testing.M) {
// Init test config.
c := config.TestConfig()
get.SetConfig(c)
defer c.CloseDb()
// Increase login rate limit for testing.
limiter.Login = limiter.NewLimit(1, 10000)
@@ -48,9 +49,6 @@ func TestMain(m *testing.M) {
// Run unit tests.
code := m.Run()
// Close database connection.
_ = c.CloseDb()
os.Exit(code)
}