comparison Plugin/Plugin.cpp @ 65:a89e1fcf56b1

new oe2 standard configuration
author Alain Mazy <am@osimis.io>
date Thu, 16 Feb 2023 17:57:25 +0100
parents 222f0652025f
children b7fd466764cc
comparison
equal deleted inserted replaced
63:729f02c2eed7 65:a89e1fcf56b1
352 } 352 }
353 353
354 if (standardConfigurations.find("stone-webviewer") != standardConfigurations.end()) 354 if (standardConfigurations.find("stone-webviewer") != standardConfigurations.end())
355 { 355 {
356 uncheckedFolders_.push_back("/stone-webviewer/"); 356 uncheckedFolders_.push_back("/stone-webviewer/");
357 uncheckedResources_.insert("/system"); 357 uncheckedResources_.insert("/system"); // for Stone to check that Orthanc is the server providing the data
358 uncheckedResources_.insert("/tools/lookup"); // for Downloads (we consider that having access to tools/lookup can not give information about other patients/studies since it only return IDs, no patient data)
358 359
359 tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, "Authorization")); 360 tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, "Authorization"));
361 }
362
363 if (standardConfigurations.find("orthanc-explorer-2") != standardConfigurations.end())
364 {
365 uncheckedFolders_.push_back("/ui/app/");
366 uncheckedResources_.insert("/ui/app/configuration"); // for the UI to know, i.e. if Keycloak is enabled or not
367
368 tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, "Authorization")); // for basic-auth
369 tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, "token")); // for keycloak
360 } 370 }
361 371
362 } 372 }
363 373
364 std::string checkedLevelString; 374 std::string checkedLevelString;