Commit f1227c0d authored by Laurent's avatar Laurent

hotline #84476 SIGB Orphee: fix authentication with LOGIN_THROUGH_SIGB_ONLY enabled

parent 438a94ad
Pipeline #5895 passed with stage
in 30 minutes and 57 seconds
- ticket #84476 : SIGB Orphee correction authentification avec WS configuré en authentification SIGB uniquement
\ No newline at end of file
......@@ -163,7 +163,7 @@ class Class_WebService_SIGB_Orphee_Service extends Class_WebService_SIGB_Abstrac
protected function hasGetAdh() {
return $this->_search_client && $this->_search_client->hasFunction('GetAdh');
return $this->getSearchClient()->hasFunction('GetAdh');
}
......
......@@ -26,11 +26,12 @@ include_once('OrpheeFixtures.php');
class Class_WebService_SIGB_Orphee_ServiceForTesting extends Class_WebService_SIGB_Orphee_Service {
public function __construct($search_client) {
$this->_search_client = $search_client;
$this->_provided_search_client = $search_client;
}
public function getSearchClient() {
$this->_search_client = $this->_provided_search_client;
$result = $this->_search_client->GetId(new GetId());
$this->_guid = $result->GetIdResult;
$this->_search_client->__setCookie('ASP.NET_SessionId', $this->_guid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment