comparison Plugin/Plugin.cpp @ 95:dff72e397f90

fix standard configuration 'orthanc-explorer-2' for TokenGetArguments
author Alain Mazy <am@osimis.io>
date Wed, 26 Apr 2023 12:05:32 +0200
parents e2c3c497eb8d
children 18d3f7bd18db
comparison
equal deleted inserted replaced
93:90582b3bf0cf 95:dff72e397f90
758 uncheckedFolders_.push_back("/osimis-viewer/app/"); 758 uncheckedFolders_.push_back("/osimis-viewer/app/");
759 uncheckedFolders_.push_back("/osimis-viewer/languages/"); 759 uncheckedFolders_.push_back("/osimis-viewer/languages/");
760 uncheckedResources_.insert("/osimis-viewer/config.js"); 760 uncheckedResources_.insert("/osimis-viewer/config.js");
761 761
762 tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, "token")); 762 tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, "token"));
763 tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_GetArgument, "token")); // for download links 763 tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_GetArgument, "token")); // for download links in Webviewer
764 } 764 }
765 765
766 if (standardConfigurations.find("stone-webviewer") != standardConfigurations.end()) 766 if (standardConfigurations.find("stone-webviewer") != standardConfigurations.end())
767 { 767 {
768 uncheckedFolders_.push_back("/stone-webviewer/"); 768 uncheckedFolders_.push_back("/stone-webviewer/");
780 uncheckedResources_.insert("/ui/api/configuration"); 780 uncheckedResources_.insert("/ui/api/configuration");
781 uncheckedResources_.insert("/auth/user-profile"); 781 uncheckedResources_.insert("/auth/user-profile");
782 782
783 tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, "Authorization")); // for basic-auth 783 tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, "Authorization")); // for basic-auth
784 tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, "token")); // for keycloak 784 tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_HttpHeader, "token")); // for keycloak
785 tokens_.insert(OrthancPlugins::Token(OrthancPlugins::TokenType_GetArgument, "token")); // for download links in OE2
785 } 786 }
786 787
787 } 788 }
788 789
789 std::string checkedLevelString; 790 std::string checkedLevelString;