| 47 | } |
| 48 | #ifdef BUILD_GRANDCHALLENGE_INTERFACE |
| 49 | else if (checkParameters(parameters, GrandChallengeSource::getRequiredParameterFields())) |
| 50 | { |
| 51 | web::http::client::http_client_config config; |
| 52 | config.set_validate_certificates(!static_cast<bool>(parameters.find("ignore_certificate")->second[0])); |
| 53 | |
| 54 | GrandChallengeURLInfo uri_info = GrandChallengeSource::getStandardURI(core::stringToWideString(source_path)); |
| 55 | DjangoConnection::Credentials credentials(DjangoConnection::CreateCredentials(core::stringToWideString(parameters.find("token")->second), L"")); |
| 56 | m_source = std::unique_ptr<WorklistSourceInterface>(new GrandChallengeSource(uri_info, m_temporary_directory, credentials, config)); |
| 57 | } |
| 58 | #endif |
| 59 | // Adds the new source to the previous sources. |
| 60 | m_current_source = source; |
no test coverage detected