Commit 5380e39d authored by jan.koester's avatar jan.koester
Browse files

test

parent 925e4f61
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -53,8 +53,12 @@ webedit::Server::Server(std::vector<netplus::socket*> serversocket,
    // Create connection pools for each auth source
    for (size_t i = 0; i < _config.getAuthSourceCount(); ++i) {
        const auto &src = _config.getAuthSource(i);
        _authPools.push_back(std::make_unique<authdb::client::ConnectionPool>(
            src.url, src.clientName, src.clientSecret, 4));
        auto pool = std::make_unique<authdb::client::ConnectionPool>(
            src.url, src.clientName, src.clientSecret, 4);
        // ConnectionPool opens its HTTP client on the first acquire(), so the
        // source's TLS policy must be applied to the pool beforehand.
        pool->setTlsVerify(src.tlsVerify);
        _authPools.push_back(std::move(pool));
    }

    // Auto-create login GPO on all auth sources