diff options
| author | Per Larsson <[email protected]> | 2022-11-14 09:44:02 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-14 09:44:02 +0100 |
| commit | 4f1b2bf3100b1e054fd0caa49eae5d0b8dff3131 (patch) | |
| tree | 65dae0a5c9b270aa80e9a02129d28d0bc673220b /zenserver/config.h | |
| parent | Include zen cmd in release (#188) (diff) | |
| download | zen-4f1b2bf3100b1e054fd0caa49eae5d0b8dff3131.tar.xz zen-4f1b2bf3100b1e054fd0caa49eae5d0b8dff3131.zip | |
Configure OpenID providers from cmd line and Lua cfg. (#189)
Diffstat (limited to 'zenserver/config.h')
| -rw-r--r-- | zenserver/config.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/zenserver/config.h b/zenserver/config.h index c90d92d14..5dbca4c41 100644 --- a/zenserver/config.h +++ b/zenserver/config.h @@ -98,10 +98,23 @@ struct ZenGcConfig uint64_t DiskReserveSize = 1ul << 28; }; +struct ZenOpenIdProviderConfig +{ + std::string Name; + std::string Url; + std::string ClientId; +}; + +struct ZenAuthConfig +{ + std::vector<ZenOpenIdProviderConfig> OpenIdProviders; +}; + struct ZenServerOptions { ZenUpstreamCacheConfig UpstreamCacheConfig; ZenGcConfig GcConfig; + ZenAuthConfig AuthConfig; std::filesystem::path DataDir; // Root directory for state (used for testing) std::filesystem::path ContentDir; // Root directory for serving frontend content (experimental) std::filesystem::path AbsLogFile; // Absolute path to main log file |