comparison OrthancServer/Sources/main.cpp @ 4343:e1e918e790e8

New function in the SDK: OrthancPluginGenerateRestApiAuthorizationToken()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 04 Dec 2020 18:28:23 +0100
parents a01b1c9cbef4
children 3dffe8f7af48
comparison
equal deleted inserted replaced
4342:52166629239f 4343:e1e918e790e8
463 context_(context), 463 context_(context),
464 plugins_(plugins) 464 plugins_(plugins)
465 { 465 {
466 } 466 }
467 467
468 virtual bool IsValidBearerToken(const std::string& token) ORTHANC_OVERRIDE
469 {
470 #if ORTHANC_ENABLE_PLUGINS == 1
471 return (plugins_ != NULL &&
472 plugins_->IsValidAuthorizationToken(token));
473 #else
474 return false;
475 #endif
476 }
477
468 virtual bool IsAllowed(HttpMethod method, 478 virtual bool IsAllowed(HttpMethod method,
469 const char* uri, 479 const char* uri,
470 const char* ip, 480 const char* ip,
471 const char* username, 481 const char* username,
472 const HttpToolbox::Arguments& httpHeaders, 482 const HttpToolbox::Arguments& httpHeaders,